Merge branch 'master' of https://github.com/FredyH/GWSockets
This commit is contained in:
commit
e1b1bf81ea
10
README.md
10
README.md
@ -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.
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user