fix websocket packets encapsulation for packets gt 65kb