took out type and var that belongs to websocket_server
dont export locally used types and variables