Websocket: made methods on the ConnectionContext class and removed debug statements