package
0.0.0-20231215042815-a1cc27aa8caa
Repository: https://github.com/yiyuhki/ikisocket.git
Documentation: pkg.go.dev
# README
Description:
Fire custom events using sockets and the standard .On() listener
Connect to the websocket
ws://localhost:3000/ws/<user-id>
Message object example
{
"from": "<user-id>",
"to": "<recipient-user-id>",
"event": "CUSTOM_EVENT",
"data": "hello"
}
# Structs
MessageObject Basic chat message object.