Upstox Websocket Text Messages are not supported error while sending binary data

b’{“guid”: “someguid”, “method”: “sub”, “data”: {“mode”: “full”, “instrumentKeys”: [“NSE_INDEX|Nifty 50”, “NSE_INDEX|Nifty Bank”, “NSE_INDEX|Nifty Fin Service”, “NSE_INDEX|NIFTY MID SELECT”, “NSE_FO|57920”, “NSE_FO|57919”, “NSE_FO|63585”, “NSE_FO|50812”]}}’
[DEBUG ] > BINARY 7b 22 67 75 69 64 22 3a 20 22 73 6f 6d 65 67 75 … 30 38 31 32 22 5d 7d 7d [254 bytes]
[DEBUG ] < CLOSE 1003 (unsupported data) Client messages not supported [31 bytes]
[DEBUG ] > CLOSE 1003 (unsupported data) Client messages not supported [31 bytes]
[DEBUG ] = connection is CLOSING

@mukeshmohn

It seems that you may not have completed the protocol buffer parsing. I suggest checking out the Python example for market data feed at:

In case you need examples in other programming languages, you can begin with the resources available here:

Please reach out if you find these resources useful.

Happy coding!

Sir,

I would like to implement websocket App(websocket-client · PyPI) for upstox api. Do you have any documentation for this.

Thank you

Sorry for being late on this.

This link should get you started for python.

Let us know if it worked.

Thanks!