WebSocket client (Implemented via winhttp)
Posted: 16 Jan 2023, 08:51
This is a websocket client implemented with winhttp, used to connect to the websocket server.
Usage
Download
Usage
Code: Select all
ws := WebSocket(wss_or_ws_url, {
message: (self, data) => FileAppend(data '`n', '*', 'utf-8'),
close: (self, status, reason) => FileAppend(status ' ' reason '`n', '*', 'utf-8')
})
ws.sendText('hello'), Sleep(100)
ws.send(0, Buffer(10), 10), Sleep(100)