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