Category "websocket"

receive discord messages in pure, browser-based javascript?

(NOTE: this first section kinda just gives context, not too relevant to the message-receive thing, but again, it sets up some context that might help) So, I kno

How to handle connection reset in Python SignalR and reconnect again

I am using Python3, signalr, and WebSocket to connect to a server. When the connection is closed or reset by the server or the network layer, I receive the foll

M2Mqtt in C# is not connected, doesn't give data

I have a project creating a websocket client side (Subscriber) to a MQTT publisher. I am quite new to C# and MQTT protocol. I follow some youtube video to make

Run Websockets with SSL for a Production Application (py2exe)

I am building a python application that is packaged as an EXE. This application runs as a Websockets server and communicates with a web app hosted on Firebase.

PHPSocket.io emit message from PHP to PHP

I'm trying to emit message from PHP code to websocket server built with PHPSocket.io Emitter code: <?php require_once __DIR__ . '/vendor/autoload.php'; $emit

My useState in React/NEXTjs is not appending the result from a socket.io event from the server, just overwriting it

Frameworks used: Next.js, Socket.io, React I am making a simple messaging app. I am basically just emitting a message someone types, sending that message to the

How can i connect Huobi websocket from client browser

When I try to connect my React client to Huobi websocket, connection immediately closing. In nodejs I can connect to Huobi websocket without any configuration.

What steps are required to make ColdFusion websockets work on an Azure VM behind Cloudflare?

We are attempting to use websockets in ColdFusion (2018.0.13.329786) in an app we have running on Azure VMs behind Cloudflare. However, we are continually gett

Python Websocket wait for variable change

I have a class that contains a websocket-client WebSocketApp, that is started in a thread. The websocket connection recieves messages and sets some class variab

How to disconnect a Stomp client Session from Spring

I know how to disconnect Sessions from Client Side, but I couldn't find a way to disconnect my session from my Spring Boot Backend. I've already seen the follow

Problem with emitting a list of rooms in Socket io

First of all, I'm very new to socket.io, so if someone would lend a helping hand it would mean a lot! :) I am making a simple chat app were a user can create or

Can't establish wss connection [React + ASP.NET Core, SignalR + nginx]

I have React app that talks to Asp.Net core API. Both of them are deployed on Docker on my VM. Nginx is installed and configured to resolve domain names for app

send previous messages in group chat

I work at a chat application. I want to store messages in an object like this : { 'room1': ['msg1', 'msg2', ...] 'room2': ['msg3', 'msg4', ...] ... } I d

Is there a WebSocket command to execute the code blocks in a SageMaker notebook instance once there is a successful connection?

I have written a Lambda Function to start a SageMaker notebook instance, create a WebSocket connection, then execute the ipynb file inside the notebook instance

JSF <f:websocket> connection fails (Jakarta EE9, JSF 3.0)

I am trying a simple websocket application using Jakarta EE9 and JSF 3.0 on a glassfish 6.2.5 server. When I run it, messages are not received, when the server

Explain what is the advantage of websocket over sending normal http requests at intervals?

I hope the question is clear. What prevents just sending a GET request every 1 second, for example, what will be the difference?

Explain what is the advantage of websocket over sending normal http requests at intervals?

I hope the question is clear. What prevents just sending a GET request every 1 second, for example, what will be the difference?

Django WebSocket connection to 'ws://127.0.0.1:8000/ws/chat/8_9/' failed:

I am doing a Django project in which I have added a live chat feature using Django channels. When I finished the messaging part I worked on other parts of the p

how to add data to database in django

I send the data I get from websocket with javascript to the view.py section of python-django with var xhr = new XMLHttpRequest() ///. my question is; The data c

Using Django-channels3 on connecting throwing error

I am using Django-Channels3 with django-redis, following a youtube tutorial, being a newbie @ Websockets, i got no idea, why WebSocketKing Client throwing this