Fix resending buffer over websocket