fixed sample app and websockets_server performance