web socket module and connection class