Client → server

Connection query: userId (required for targeted emits).

Server → client (broadcast)

{index} is lowercase index key, e.g. niftyTickData.

Server → client (targeted)

Sent only to socket ids mapped to that userId.

Internal-only (not on wire)

Frontend subscribers

See Frontend event handlers.