Move registering WebSocketServerModule script types to WebSocketServer class so that the function is called for each script engine.