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