https://github.com/flaribbit/mwebsocket
https://github.com/flaribbit/mwebsocket
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/flaribbit/mwebsocket
- Owner: flaribbit
- Created: 2022-10-29T08:30:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-31T01:56:00.000Z (over 1 year ago)
- Last Synced: 2024-10-15T06:07:58.786Z (9 months ago)
- Language: C
- Size: 315 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mlua + tungstenite
Learning multithreading with Rust. By the way, I wrote this library for love2d, which includes websocket client and json modules.
## Documents
- `newClient() -> Client`
- `Client:connect(url: string)`
- `Client:poll() -> string?`
- `Client:send(text: string)`
- `Client:close()`
- `jsonParse(value: string) -> table`
- `jsonStringify(value: table) -> string`## Example
For the full example for love2d, see [test/main.lua](test/main.lua).## Dependencies
- pkg-config
- love2d 11.4