微信小程序支持通过基于WebSocket进行消息推送,提供了相应的API,例如创建连接示例代码:
JavaScript
wx.connectSocket({
url: 'test.php',
data:{
x: '',
y: ''
},
header:{
'content-type': 'applicati...
3-18 5,056 views
阅读全文 13-18 5,056 views
阅读全文 14-15 2,786 views
9-15 2,880 views
阅读全文 09-07 1,980 views
阅读全文 08-22 2,042 views
7-27 2,078 views