don't use constructor but attachWebsocketServer