我该如何实现多人共同在微信小程序一张canvas上画图啊?

小程序 文章 2021-01-27 12:21 424 0 全屏看文

AI助手支持GPT4.0

我该如何实现多人共同在微信小程序一张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.

回答:

星意科技:

websocket URL一般以ws://开头,但是微信要求加ssl,也就是wss://这样。类似于http与https。

websocket需要前后端配和,PHP一般使用swoole来提供服务。

Mr.Zhao:

不用socket,用云数据库的watch不也能实现同样效果。 说了又不听

this:

websocket需要在服务器端配置,然后配置好不就有个地址了吧

-EOF-

AI助手支持GPT4.0