TCPSocket.write(string|ArrayBuffer data)
在 socket 上发送数据
参数
string|ArrayBuffer data
要发送的数据
示例代码
1 2 | const tcp = wx.createTCPSocket() tcp.write( 'hello, how are you' ) |
在 socket 上发送数据
要发送的数据
1 2 | const tcp = wx.createTCPSocket() tcp.write( 'hello, how are you' ) |