simple-swoole / simps

🚀 A simple, lightweight and high-performance PHP coroutine framework.
https://simps.io
Apache License 2.0
469 stars 48 forks source link

can i connect websockets server? #19

Closed staywithdream closed 4 years ago

staywithdream commented 4 years ago

can i connect websockets server?

sy-records commented 4 years ago

Yes, you can. What problem did you encounter?

staywithdream commented 4 years ago

image when the host is start with 'wss://' it was stop at here. how can i change the protocol? if i remove 'wss://' the server return 400.

sy-records commented 4 years ago

Oh, I thought you were using websocket server. . . The mqtt client not support connecting to the websocket server

staywithdream commented 4 years ago

Ok I see. I am trying to use a data interface , the API said they need connected by wss based on mqtt. I dont know how.

BTW, I saw your name is Chinese , Can we communicate in Chinese?

2020年8月31日 下午11:30,沈唁 notifications@github.com 写道:

Oh, I thought you were using websocket server. . . The mqtt client not support connecting to the websocket server

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/simple-swoole/simps/issues/19#issuecomment-683852314, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTXN4GOBA3L7Y6HRZBUC3TSDO62NANCNFSM4QQNGXIA.

sy-records commented 4 years ago

Swoole的MQTT和WebSocket是两种协议,放一起应该会有问题,收不到数据。你可以自己试下,有问题可以加QQ群来找我

staywithdream commented 4 years ago

image 只是部分Python实现的代码,但是我现在想要用PHP实现 image