C or C++ library for encoding and decoding websocket frames

I have my own socket implementation that supports connection from regular tcp client. Now I would like to add websocket support in my server program. In that case I will need to support...

Check if my website is open in another tab

I want to check with JavaScript if the user has already opened my website in another tab in their browser. It seems I cannot do that with pagevisibility... The only way I see is to use WebSocket...

Video Streaming Over Websockets

I am trying to build mobile app which can stream video from both sides(i.e something like video calling). I looked into webrtc, but thats not yet ready for mobile native apps as such and anyways...

JS Websocket stuck in state CONNECTING to TCPListener - VB.net

Note: The closest question I have found to mine is this one, but the answer is to send data via a proxy function that waits for the readyState to be 1. This is not a duplicate of that question...

HTTP POST using XHR with Chunked Transfer Encoding

I have a REST API that accepts an Audio file via an HTTP Post. The API has support for Transfer-Encoding: chunked request header so that the file can be uploaded in pieces as it is being created...

Failed to create WebSocket connection when Spring Security is on

Im using Java WebSocket client that subscribe to a Spring-Boot based server application. Everything worked just fine, but after adding support for Spring Security in order to authenticate and...

WebSocket connection to ... failed: Error during WebSocket handshake: Unexpected response code: 200

I am trying to create websocket connection between Chrome Browser and Glassfish 4.1.1 server. Unfortunately, I get HTTP 200 message instead of 101. Chrome DevTool log: "WebSocket connection to...

javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not found

Despite a lot of problem solutions I have stuck on the problem with ELException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in...

Websocket handshake status 200 exception

This is my client: from websocket import create_connection ws = create_connection("wss://127.0.0.1:8080", sslopt={"cert_reqs": ssl.CERT_NONE, "check_hostname": False,...

MQTT in - Connection failed to broker

Need help. I installed node-red and want to build a flow with connects to mqtt broker, get's messages and passes them with tpc/ip to other server. I built a simple flow for connecting to mqtt, but...

Java EE Websocket programmatic Endpoint how to use Pathparams?

I'm fairly new to Java EE, so don't be to harsh with me, if what I'm asking doesn't make sense to you. I followed some tutorial for implementing the websocket api, essentially creating two...

WebSocket connection to 'ws://localhost:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I am getting no Websocket connection between client script and server. It is working fine in my local environment. Also I am following this link. Here's a server script that initializes the...

Websocket server: TypeError ws.send() not a function

I'm starting to use node js. So far everything was good. Untill today. I was playing with websockets, i'm able to establish a connection between the server and the browser. However, I cannot send...

Integrating Spring boot server and Angular CLI application into a single executable

I have designed a solution in which spring boot application comprises of websocket functionality receives socket connection from client as wells consumes REST API calls from the Angular CLI...

Socket.io-client don't connet to server from React Native mobile application

I am trying to connect to a remote server via socket-io.client from a React Native android application, but these attempts fail, socket check. connected -> false, does not work on the connect...

Check if user has perms?

I tried doing this: if(!msg.author.hasPermission('MANAGE_MESSAGES')) return msg.channel.send(":x: You don't have permissions. :x:") but it gave me this error: TypeError:...

Is Django Asyc Views an ajax replacement?

I have some confusions and will like to clear them by asking some questions. According to this Ajax definition: Ajax is a set of web development techniques using many web technologies on the...

Unable to create a broadcast stream in flutter

Note: Please read edit first. I want to create a broadcast stream for providing to Stream Builder. And I also have to attach websocket url to it. Using StreamController docs, this is what i've...

OutOfMemoryError: Direct buffer memory when using websockets in WildFly

After a while on our WildFly 18 server, in production, we encountered this error: [org.xnio.listener] (default I/O-1) XNIO001007: A channel event listener threw an exception:...

How to set up heartbeats with webstomp-client and Spring Boot?

I have a React.js frontend establishing websocket connections (STOMP) with a Spring Boot backend. I'm using the webstomp-client library on the front-end, because that is the one recommended in the...

Client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header

I am using Gorilla Websocket package to implement a websocket. conn, err := upgrader.Upgrade(w, r, nil) if err != nil { // handle error fmt.Println(err) } defer...

Unable to connect with Mqtt using wss protocol

I want to connect mqtt using wss protocol. What have I tried -> import 'dart:async'; import 'dart:io'; import 'package:mqtt_client/mqtt_client.dart'; import...

Discord.js | UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'partial' of undefined

I try to-do getting a role with discord.js with command handler but when I try to run messageReactionAdd event I get these error (node:249794) UnhandledPromiseRejectionWarning: TypeError: Cannot...

Contacting another WebSocket server from inside Django Channels

I have two websocket servers, call them Main and Worker, and this is the desired workflow: Client sends message to Main Main sends message to Worker Worker responds to Main Main responds to...

How to set up Apollo Subscriptions in NextJS in Client and Server side?

So I'm trying to set up Apollo Subscriptions in my NextJS App, and I am having trouble trying to get the right code to get it working. The problems I get when trying the code found in the Apollo...

Zerodha KiteConnect API producing 1006 Error

I am building a dashboard for live tickers I am using zerodha Kiteconnect to fetch SE Options & Futures live data for that ... The client for whom I am building the dashboard has provided me the...

Monaco client won't connect to Eclipse JDT server

I want to add Java Intellisense to my Monaco client. For this I will connect the Eclipse JDT server with the Monaco client. Monaco client link:...

Set up Phemex API trading

I try to set up a crypto-trading-bot, which can go short- and long-positions. So I created a phemex account and tried to implement a bot in jupyter notebook using python. I created API key and...

Django channels + send websocket message after post request

i have a problem with my app. My django channels and websocket works absolutely fine, when i send a message from JS(inside rendered html) the message is going into websocket and after that to the...

SignalR long polling repeatedly calls /negotiate and /hub POST and returns 404 occasionally on Azure Web App

We have enabled SignalR on our ASP.NET Core 5.0 web project running on an Azure Web App (Windows App Service Plan). Our SignalR client is an Angular client using the @microsoft/signalr NPM package...