This commit is contained in:
Frederik Haselmeier 2018-05-12 17:08:08 +02:00
commit e1b1bf81ea

View File

@ -2,7 +2,7 @@
WebSockets for GLua
# Usage
Place either `gmsv_gwsockets_win32.dll` (Windows) or `gmsv_gwsockets_linux.dll` (Linux) into you `GarrysMod/lua/bin` folder.
Place either `gmsv_gwsockets_win32.dll` (Windows) or `gmsv_gwsockets_linux.dll` (Linux) into your `GarrysMod/lua/bin` folder.
*NOTE:* Even though this module is mainly aimed at servers, it can also be used on clients. Just rename the module to `gmcl_gwsockets_os` and it will work on clientside as well.
@ -81,10 +81,10 @@ require("gwsockets")
WEBSOCKET:clearQueue()
```
* You can check if the websocket is connected using
```LUA
WEBSOCKET:isConnected()
```
*NOTE:* You should avoid using this and instead rely on the callbacks.
```LUA
WEBSOCKET:isConnected()
```
*NOTE:* You should avoid using this and instead rely on the callbacks.