Changed websocket factory to handle individual clients