1 thought on “murrina jewelry wholesale How to use Skynet to build a server”
Nelson
double heart jewelry wholesale Methods as below:n 1.lua-resty-websocket is too old, now it is the era of LUA53n 2. I still like TORNADO WebSocket-based ways. Of course, I can write both the callback method, or the Lua-Resty-weightnBased on a direct RECV methodn In fact, the analysis of WebSocket is still relatively simple. The more complicated is the close operation of the WebSocket. Like shaking hands, Close also needs a client-servernConfirmed.n When the client-> Close-> server, the server receives the Close event with OPCODE 8, the server sends a Close Frame, and then close the client Socketn When the server-> Close-> client, the server sends a close frame. At this time, the client gets the Close incident, and the client will then actively send the Close Frame to the server. The server receives it.nOPCODE is a Close event with 8 to close the client socket.nIt should be noted here that if JS is used, VAR WS = New WebSocket (XXXX), you do not need to actively call WS.Close () in the OnClose event, and the bottom layer will help you call.
double heart jewelry wholesale Methods as below:n 1.lua-resty-websocket is too old, now it is the era of LUA53n 2. I still like TORNADO WebSocket-based ways. Of course, I can write both the callback method, or the Lua-Resty-weightnBased on a direct RECV methodn In fact, the analysis of WebSocket is still relatively simple. The more complicated is the close operation of the WebSocket. Like shaking hands, Close also needs a client-servernConfirmed.n When the client-> Close-> server, the server receives the Close event with OPCODE 8, the server sends a Close Frame, and then close the client Socketn When the server-> Close-> client, the server sends a close frame. At this time, the client gets the Close incident, and the client will then actively send the Close Frame to the server. The server receives it.nOPCODE is a Close event with 8 to close the client socket.nIt should be noted here that if JS is used, VAR WS = New WebSocket (XXXX), you do not need to actively call WS.Close () in the OnClose event, and the bottom layer will help you call.