modify return of websocket