kataras / neffos

A modern, fast and scalable websocket framework with elegant API written in Go
http://bit.ly/neffos-wiki
MIT License
572 stars 47 forks source link

How to assign some values to a socket connection? #69

Open Swaraj-cs opened 1 year ago

Swaraj-cs commented 1 year ago

Is there any option to assign some values to socket (like in node.js web socket )?When a client is connected, we can set some room id , seat id and status to socket and check its value when its disconnected or sending any messages.

like socket.status = "connected" socket.room_id = "room1" socket.seat_id = "seat1"