Relative Content

Tag Archive for websocket

How should warning information be sent to the client from the server in WebSockets?

I have an application that uses websockets to send the client notifications in real time. Before establishing the handshake, on the server side some operations are performed with some query params that arrive from the client’s request. Some of these operations may result in “warnings”/, but some of these warnings are acceptable, that is, the frontend should know that something happened but these errors are not a reason not to set the handshake. How should I send that information to the client? In the response headers, or in any message once the websocket has already started?

AWS Python Serverless Solution for WebSocket Client Needed

We are trying to receive event notifications from a website that has a WebSocket (wss://XXX) endpoint. From the website API docs, the instructions are “Users must connect to the endpoint with a WebSocket client and then subscribe to any events that will trigger notifications.” We would like to do this through an AWS serverless solution as we have many other serverless apps deployed as it fits within our scope of development knowledge (which is half the battle always!! :)) We are a Python shop, so would like a Python serverless solution.

Some Number on websocket Messages

I’m new to using WebSocket and I’m simulating a WebSocket connection from a service. On the start of each message, there’s a number like 42237 or … Anyone knows what it is?