mikina / TelegraphSocket

Just to present Websocket issue in Telegraph library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TelegraphSocket

This project is here just to present Websocket issue in Telegraph library.

Steps to reproduce:

  • Server is running on port 8080.
  • Try to connect with a websocket client to: ws://localhost:8080/
  • Server will load output1.json file, on webSocketDidConnect will try to send Data to websocket using webSocket.send(data: data).
  • For output1.json connection will be closed with: (1002) WebSocket Protocol Error
  • For output2.json all data will be sent.

File output1.json is around 1.2MB in size.

File output2.json is around 49KB in size.

About

Just to present Websocket issue in Telegraph library.


Languages

Language:Swift 89.4%Language:Ruby 10.6%