首页 \ 问答 \ 使用Python的服务器 - 客户端推送通知(Server-Client push notification with Python)

使用Python的服务器 - 客户端推送通知(Server-Client push notification with Python)

我正在构建一个客户端应用程序,它连接到服务器并等待来自服务器的信号做某事(想想聊天应用程序)。 例如:用户1具有客户端1和2,用户2具有客户端3,服务器将消息发送到频道“用户1”,并且仅客户端1和2将具有该消息。

我知道Websocket和Long-polling,但找不到自托管且易于测试的服务器。 最初我想在潜水之前先做一个概念验证。

Nginx推送流似乎符合我的需要,我可以创建一个通道,并通知所有客户端连接到该通道,看起来足够好用,但我找不到任何Python客户端实现

AutoBahn和其他一些Python服务器似乎只创建一个频道和广播。

有人可以给我一个正确的方向。


I'm building an client application, which connect to a server and wait for signal from server to do something (think about chat app). For example: user 1 has client 1 and 2, user 2 has client 3, the server would send the message to the channel "user 1" and only client 1 and 2 will have the message.

I know about Websocket and Long-polling, but can't find a server which is self-hosted and easy to test. Initially I want to make a proof-of-concept first before dive in later.

Nginx push stream seems to fit my need, I can create a channel, and notify all client connect to that channel, seem good enough to use, but I can't find any Python client implement

AutoBahn and some other Python server seem only create one channel and broadcast.

Can someone give me a correct direction.


原文:https://stackoverflow.com/questions/13286855
更新时间:2023-12-04 22:12

最满意答案

我看到有一个api。 echeck.net使用ACH网络并贷记/借记银行账户。

是否可以通过CIM API将银行信息存储在authorize.net服务器中,并在网站需要通过脚本从消费者那里收钱时使用它们? 并通过脚本可以从网站银行帐户贷记用户银行帐户?

CIM可以与eChecks一起使用,并且可以满足您的需求。 有关createCustomerProfileRequest API调用的详细信息,请参阅CIM手册的第9页。


I saw that there is an api for that. echeck.net which uses ACH network and credit/debits a bank account.

Is it possible to store the bank info in authorize.net server through CIM API, and use them whenever website needs to collect money from consumer, through a script? and through script is it possible to credit the users bank account from website bank account?

CIM does work with eChecks and should do what you need. See page 9 of the CIM manual for details of the createCustomerProfileRequest API call.

相关问答

更多
  • 如果您使用PayPal作为处理器,则不提供直接ACH。 PayFlow Gateway确实有它的参数,但只有当你使用其他公司作为你的处理器并且他们提供它时。 PayPal等同于ACH是实际的PayPal付款,其中该人选择其银行账户作为资金来源。 至于您询问的凭据,PayFlow不像REST API那样使用密钥。 相反,它使用您用于登录manager.paypal.com帐户的相同凭据。 然后,您可以根据需要在帐户中为API访问创建单独的用户,并在您的通话中使用这些用户。 因此,PayFlow请求中的凭据实际 ...
  • 您无法验证信用卡在没有处理交易的情况下是合法的。 您可以验证卡号的格式是否有效,并且卡未过期,但如果卡是真实的或活动的,则不能。 要验证信用卡有效且不收费,您需要根据处理器的要求为$ 0.00或$ 0.01执行AUTH_ONLY。 如果它被批准,并且金额为0.01美元,那么您应该使该交易无效。 You can't validate a credit card is legitimate without processing a transaction. You can validate the format ...
  • 通过Authorize.Net无法实时验证银行账户。 ACH的工作方式与信用卡不同,这是其中的一个局限性(优势在于接受ACH支付的成本较低)。 格子呢提供帐户验证,通过API返回即时结果。 然而, 格子不是免费的 。 如果您提供服务或产品并接受ACH付款,并且不希望由于核实该等帐户有效或支付费用而等待风险,那么您应推迟允许访问该服务或运送您的商品,直至付款清算。 否则,像格拉德这样的服务就是你正在寻找的。 There is no way to get real time verification of a ...
  • 我不得不联系PayPal在我的沙盒帐户上添加ACH功能。 I had to contact PayPal to add the ACH feature on my sandbox account.
  • 之前的一个名为API For Direct Deposit(ACH,EFT,Whatever)的问题与paymentgateway的API (pdf)有关。 他们拥有的API似乎是基于消息的,因此他们提供的Java示例 (zip)更多的是关于设置安全的https连接来传输消息。 API文档似乎表明它们支持信用。 免责声明:我没有使用过这个API或支付网关,但我想我会试着让球滚动...... A previous question titled API For Direct Deposit (ACH, EFT ...
  • 我看到有一个api。 echeck.net使用ACH网络并贷记/借记银行账户。 是否可以通过CIM API将银行信息存储在authorize.net服务器中,并在网站需要通过脚本从消费者那里收钱时使用它们? 并通过脚本可以从网站银行帐户贷记用户银行帐户? CIM可以与eChecks一起使用,并且可以满足您的需求。 有关createCustomerProfileRequest API调用的详细信息,请参阅CIM手册的第9页。 I saw that there is an api for that. echec ...
  • 只要处理器支持卡的类型(Visa,MasterCard,Amex等),无论与卡相关的资金来源如何,都将处理交易。 借记卡,信用卡和预付款描述了附在卡上的资金类型,但不会改变商家处理卡的方式。 As long as the type of card (Visa, MasterCard, Amex, etc..) is supported by the processor, the transaction will be processed regardless of the fund source assoc ...
  • 我为Yodlee工作。 很抱歉听到你很难抓住我们。 要回答您的问题,是的,用户必须明确授权任何利用Yodlee API的应用程序,并明确地为该应用程序添加对其财务帐户的访问权限。 最好,格雷斯 I work for Yodlee. Sorry to hear you're having a hard time getting a hold of us. To answer your question, yes the user has to explicitly authorize any applicat ...
  • QB桌面的ACH付款。 我们可以使用哪些API? 使用QuickBooks Payments API 。 这是您唯一的选择 - 它是唯一支持ACH的API Intuit。 它会做信用卡以及ACH。 https://developer.intuit.com/docs/api/payments 请注意,这些QB Desktop客户端使用“连接票证”进行身份验证。 他们不再使用连接票,他们将使用OAuth。 那么有没有办法将此API与QB DESKTOP结合使用? 是。 如果是这样,客户(具有Intuit商家帐户 ...
  • Visa和MasterCard不再允许1美元的费用 。 您可以执行$ 0授权,因此如果您的处理器允许您可能能够执行原始计划。 某些支付网关提供商(如Authorize.Net)提供的服务允许您随时创建支付配置文件并对其收取任何金额。 他们的服务称为客户信息管理器 。 您应该看看您的提供商是否提供类似的服务。 $1 charges are no longer allowed by Visa and MasterCard. You can do $0 authorizations so if your proc ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)