diff --git a/docs/docs/lua/network.md b/docs/docs/lua/network.md index 07c3683..aa8a4a4 100644 --- a/docs/docs/lua/network.md +++ b/docs/docs/lua/network.md @@ -70,18 +70,8 @@ ws:send('Hello from client!') ws:send(JSON.stringify({ type = 'chat', message = 'Hello!' })) ws:close() - -if ws.readyState == WebSocket.OPEN then - ws:send('Connected message') -end ``` -**WebSocket States:** -- `WebSocket.CONNECTING` (0) - Connection in progress -- `WebSocket.OPEN` (1) - Connection established -- `WebSocket.CLOSING` (2) - Connection closing -- `WebSocket.CLOSED` (3) - Connection closed - ## URL API URL encoding and decoding utilities for handling special characters in URLs.