websocket.md 2.3 KB
Newer Older
D
DCloud_LXH 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
## uni.connectSocket(options) @connectsocket

<!-- UTSAPIJSON.connectSocket.description -->

<!-- UTSAPIJSON.connectSocket.param -->

<!-- UTSAPIJSON.connectSocket.returnValue -->

<!-- UTSAPIJSON.connectSocket.example -->

<!-- UTSAPIJSON.connectSocket.compatibility -->

<!-- UTSAPIJSON.connectSocket.tutorial -->

## uni.onSocketOpen(options) @onsocketopen

<!-- UTSAPIJSON.onSocketOpen.description -->

<!-- UTSAPIJSON.onSocketOpen.param -->

<!-- UTSAPIJSON.onSocketOpen.returnValue -->

<!-- UTSAPIJSON.onSocketOpen.example -->

<!-- UTSAPIJSON.onSocketOpen.compatibility -->

<!-- UTSAPIJSON.onSocketOpen.tutorial -->

## uni.onSocketError(callback) @onsocketerror

<!-- UTSAPIJSON.onSocketError.description -->

<!-- UTSAPIJSON.onSocketError.param -->

<!-- UTSAPIJSON.onSocketError.returnValue -->

<!-- UTSAPIJSON.onSocketError.example -->

<!-- UTSAPIJSON.onSocketError.compatibility -->

<!-- UTSAPIJSON.onSocketError.tutorial -->

## uni.sendSocketMessage(options) @sendsocketmessage

<!-- UTSAPIJSON.sendSocketMessage.description -->

<!-- UTSAPIJSON.sendSocketMessage.param -->

<!-- UTSAPIJSON.sendSocketMessage.returnValue -->

<!-- UTSAPIJSON.sendSocketMessage.example -->

<!-- UTSAPIJSON.sendSocketMessage.compatibility -->

<!-- UTSAPIJSON.sendSocketMessage.tutorial -->

## uni.onSocketMessage(callback) @onsocketmessage

<!-- UTSAPIJSON.onSocketMessage.description -->

<!-- UTSAPIJSON.onSocketMessage.param -->

<!-- UTSAPIJSON.onSocketMessage.returnValue -->

<!-- UTSAPIJSON.onSocketMessage.example -->

<!-- UTSAPIJSON.onSocketMessage.compatibility -->

<!-- UTSAPIJSON.onSocketMessage.tutorial -->

## uni.closeSocket(options) @closesocket

<!-- UTSAPIJSON.closeSocket.description -->

<!-- UTSAPIJSON.closeSocket.param -->

<!-- UTSAPIJSON.closeSocket.returnValue -->

<!-- UTSAPIJSON.closeSocket.example -->

<!-- UTSAPIJSON.closeSocket.compatibility -->

<!-- UTSAPIJSON.closeSocket.tutorial -->

## uni.onSocketClose(callback) @onsocketclose

<!-- UTSAPIJSON.onSocketClose.description -->

<!-- UTSAPIJSON.onSocketClose.param -->

<!-- UTSAPIJSON.onSocketClose.returnValue -->

<!-- UTSAPIJSON.onSocketClose.example -->

<!-- UTSAPIJSON.onSocketClose.compatibility -->

<!-- UTSAPIJSON.onSocketClose.tutorial -->

<!-- UTSAPIJSON.general_type.name -->

<!-- UTSAPIJSON.general_type.param -->