Remove duplication in WebSocketServer

The type parameter thing didn't really do anything, so just keep it like
this