I've added sendMessageToAllClients to SocketServer to abstract sending a message to connected clients. That way other services don't have to deal with the network layer to send a message to all connected clients. If other services need more custom functionality, a child of SocketServer can be created.
See https://github.com/sneilan/stock-exchange/issues/22
I've added
sendMessageToAllClients
to SocketServer to abstract sending a message to connected clients. That way other services don't have to deal with the network layer to send a message to all connected clients. If other services need more custom functionality, a child of SocketServer can be created.