多人共同在微信小程序一张canvas上画图,感谢感谢,现在没有思路,还有websocket URL ws那个地址怎么来的? 很感谢,我是白痴。
我该如何实现多人共同在微信小程序一张canvas上画图啊?How can I realize that multiple people can draw pictures on a canvas in the WeChat applet?
我该如何实现多人共同在微信小程序一张canvas上画图啊?多人共同在微信小程序一张canvas上画图,感谢感谢,现在没有思路,还有websocket URL ws那个地址怎么来的? 很感谢,我是白痴。
Many people work together to draw a picture on a canvas of wechat applet. Thank you. Now I have no idea. How did websocket URL WS come from? Thank you very much. I'm an idiot.
回答:
不用socket,用云数据库的watch不也能实现同样效果。 说了又不听
websocket需要在服务器端配置,然后配置好不就有个地址了吧
websocket URL一般以ws://开头,但是微信要求加ssl,也就是wss://这样。类似于http与https。
websocket需要前后端配和,PHP一般使用swoole来提供服务。