moved websockets handling to separate server