Questions tagged [websocket]

WebSocket is an API built on top of TCP sockets and a protocol for bi-directional, full-duplex communication between client and server without the overhead of HTTP.

0
votes
0answers
7 views

Send file from Spring server to Angularjs client with web socket

I've always used rest web services to transfert file between client and server but now I have to make this through web socket. This is the scenary: user requires file download by page interface, so ...
-4
votes
1answer
20 views

Websocket message handler in Python

I have successfully subscribed to a websocket and am receiving data. Like: Received '[0, 'hb']' Received '[1528, 'hb']' Received '[1528, [6613.2, 21.29175815, 6613.3, 37.02985217, 81.6, 0.0125, 6611....
0
votes
0answers
8 views

c# web socket server not working properly

I am using a asynchronous socket server in my c# project for reading rfid tags. First rfid tags are read by a client app and send a string that contains rfid details to my socket controller. The ...
-2
votes
3answers
31 views

Best way to create one to one chat application using django [on hold]

question is somehow a suggestion I saw many answers till now like using these in these answers which are well explained as well Can I use Socket.IO with Django? but I wanted to know is there a ...
-1
votes
0answers
24 views

Filter json live streamed data and Append in HTML table

Good day Fellow developers, I kindly ask for your assistance regarding the issue/challenge m facing, I'm using a stomp connecting to retrieve data over a websocket. So i would like your assitance in ...
0
votes
0answers
6 views

SecurityError on IE11 when initializing WebSocket

We have a code that creates multiple websocket instances every time the application is opened. privateMembers.webSocket = new WebSocket(url, protocol); where the url contains an authentication token....
-2
votes
1answer
18 views

Unable to connect to WAMP router on the client side of my application

I'm building a web interface to an IoT device that will change the settings of the device. The tech stack that i'm using is as follows: - React.JS for the front end client - Node.js for the server -...
-2
votes
0answers
27 views

Invalid session code 1000 during connect using SwiftWebSocket library [on hold]

I'm trying to connect to WebSocket server from iOS app using SwiftWebSocket library as in example at github page But I'm getting error: Invalid session code 1000
0
votes
0answers
11 views

WebSocket proxying with HttpServlet

I have a question. Maybe someone can explain to me, or maybe someone already have done this - In my project, i use http proxy based on Smiley's Http Proxy with little refactor - it's working great for ...
0
votes
0answers
13 views

AAD Application Proxy overwrites/deletes keep-alive

so i have this weird problem with the AAD Application Proxy. I have a vm in azure which i use as a webserver. When i access the webserver directly everything works fine, like normal HTTP Requests/...
0
votes
0answers
8 views

MQTT mows.js WS pingreg and pingresp

Silly question but maybe not so much. Haven't found the answer anywhere. I'm able to publish and subscribe from WS in MQTT. I now need to "pingreq" the server and handle the "pingresp". Anyone ...
0
votes
0answers
26 views

How to use multiprocessing with websockets?

Below is an example of a websocket that uses threads to maintain a web socket connection. import websocket import threading from time import sleep def on_message(ws, message): print message def ...
0
votes
0answers
11 views

How to make connection from Nodejs websocket client to a Java TCP socket server

I am currently working on a reactjs project that try to use socket to get some real time data from server. We have a Java TCP socket server that is working right now, our iphone and android apps can ...
0
votes
0answers
17 views

How to use HTTP path (“GET /xyz”) basic auth header (“Authorization”) to access Websocket protocol?

Continuing on from this thread here. I am trying to pass a string through to the back end when I request a new WebSocket by using the optional second argument for the WebSocket constructor. Like this:...
0
votes
1answer
19 views

SignalR pending start connection

I'm implementing the SignalR library to use websocket in a kind of 'queue', in a ASP.NET MVC Application. Everything works as expected when there are only two users. When a third one logs in (I mean, ...
0
votes
0answers
21 views

C# Class Library connect to WebSocket

I have a Class Library project on .Net Core. And there I want to connect to WebSocket I know how to connect in API-project where I can use Startup.cs. And there I config services via services....
0
votes
0answers
9 views

Recording websocket messages

I need to extend a HTTP recorder to record websocket traffic. HTTP recorder is in C / unix platform. I know HTTP traffic will be through port 80 or 443, hence I am able to record it. In HTTP message ...
0
votes
0answers
14 views

Streaming audio buffer from a web page to C# Google Cloud Speech to Text SDK and receiving 400 errors

I have a requirement to add speech-to-text from a web page. I cannot find enough documentation to tell me what the best approach would be. I have read posts and reviewed samples Stream Audio from C#....
0
votes
1answer
20 views

Detect click on multiple devices in real time

I'm asking for your help because I need to make a webpage that need to communicate in real-time with different user and devices. Device1 (on /page1) : simple page waiting for something to happen ...
0
votes
0answers
5 views

Websocket connection closes unexpectedly

In my application, I'm capturing/recording User Screens and User Video with video-cam attached to the system. I'm sending this information to WebSocket server. WebSocket connection gets open ...
2
votes
2answers
40 views

WebSocket handshake: Unexpected response code: 400 in kubernetes-ingress

Facing this issue if I am connecting to ingress for web socket service failed: Error during WebSocket handshake: Unexpected response code: 400 Ingress YAML kind: Ingress apiVersion: extensions/...
0
votes
0answers
48 views

Is it possible to have two client side web pages communicate in different browsers but the same domain?

I am currently working on a demo simulation. Where upon a user presses a button on a mobile styled app and in a different browser a taxi comes to collect them using the google maps api. Both are ...
0
votes
0answers
10 views

RXJS6 Websocket Subject Subscription issue with Redux Observables

I am trying to have on-demand wensocket connection in my React-Redux application. RxJS gives webscoketSubject for managing webscokets. On reception of action, I want to start a connection using ...
0
votes
0answers
15 views

Error when connecting web socket in elastic beanstalk

I create web socket using java package websocket; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import javax.websocket.OnClose; import javax.websocket.OnOpen; import javax....
0
votes
0answers
19 views

Spring: Controller Order for Websockets Configuration

I am currently developing an application using spring and websockets. The problem is that this application has a catch-all controller @RequestMapping (value = "/**", method = {RequestMethod.GET}) ...
1
vote
0answers
20 views

Nginx: proxy_pass + websocket + basic authentication + Safari = endless loop in access log

Safari (Desktop & iOS) Meteor web application protected by nginx basic authentication. I see the following access log records in an endless loop when I visit the app on Safari. Chrome works as ...
0
votes
0answers
10 views

WebSocket Error when moving data too fast

The scenario.... A WebSocket connection is initiated from the browser to a piece of C code on the client machine. Everything opens just fine and the socket is running. (I should note that this is a ...
0
votes
1answer
12 views

Web sockets and Rest API in same Tomcat based application

I have read up on web sockets providing full duplex connections over TCP which can be used in scenarios where long polling was used to get live updates to client from server. Now I have a Tomcat based ...
-1
votes
1answer
32 views

nlohmann/json uWebsocket

For a project I am want to use the uNetworking/uWebSockets library in combination with the nlohmann/json library. This is my code so far: #include <uWS/uWS.h> using namespace uWS; using json = ...
0
votes
0answers
20 views

Large Message in web socket taking absurdly long

In my current app, I transmit a large string (approximately 0.4MB) every few milliseconds. When I transmit this text from the server, I make the following blocking call. data = websocket.recv() I've ...
0
votes
0answers
42 views

ASP.NET faster upload

I am recording voice on xamarin client and sending to asp.net core server. But sending takes long time when I have long audio record. How can I speed it up? send audio record by chunks (for example ...
1
vote
0answers
28 views

Can a let's encrypt SSL certificate also be used for a websocket connection?

Our web application has a SSL certificate from letsencrypt In this app I've build a websocket module to show live data changes in some pages. During development I didn't notice that my websocket ...
1
vote
0answers
14 views

ASGI options for django 1.9 and python 2.7 [on hold]

I am currently running django-channels on Daphne and looking for other options. Any and every suggestions are highly appreciated
0
votes
0answers
41 views
+50

How to properly manage sockets for simultaneous battles in a multiplayer strategy game

I'm building a strategy game, where players can battle each other. As for now, I'm focusing on making 1v1 PvP battles, but I also want to build an architecture, that will allow for further extension ...
0
votes
1answer
19 views

springboot websocket do not work @Autowired

In this class @Autowired is work @Configuration @EnableWebSocket public class WebSocketConfig implements WebSocketConfigurer { @Autowired private UserDAO userDAO; // is NOT null @...
0
votes
1answer
18 views

How should I visualise a WebSocket connection to an AWS ALB?

AWS ALBs support HTTP and WebSockets natively. My understanding of a HTTP request to an ALB is that the client will set up a TCP connection to the ALB and send a HTTP request, the ALB will inspect the ...
0
votes
0answers
16 views

How do I pass header while connecting to websocket?

I am using the Stomp Protocol Android on my project, however I get the success message while connecting to server but need to pass a header to get the payload from the server. I pass the header into ...
0
votes
0answers
17 views

Django Channels - Cannot send event to a consumer

I am using Django Channels to run a MQTT listener in background and push MQTT events to browser using Websockets. For that I have written a SyncConsumer which I trigger when the web application ...
0
votes
0answers
18 views

ActionCable using controller variable

In my Ruby on Rails project, I have a user model that is set up by devise. Each user belongs to an account with an account_id. In my application_controller.rb I have def set_account @account = ...
1
vote
1answer
12 views

Сonnection_timed_out when trying to connect to AWS EC2 tcp port (not rdp)

I'm trying to launch a socket server on Amazon EC2. It binds the socket to 0.0.0.0:5000 and then listens on this port, printing every incoming message However, when I simply try to connect to ec2-18-...
0
votes
1answer
15 views

Websocket only vs Websocket with rest for sending messages

I learning Spring and I choose chat application as my training application. I want implement all the best as it possible to learn good practices. Now, I want implement sending and receiving messages. ...
1
vote
0answers
67 views
+50

Long delay in using asyncio and websockets in Python 3

I am experiencing a long (3-hour) delay (EDIT: the delay is brief at first and then gets longer throughout the day) in processing data pushed from a websocket server to my client.py. I know that it is ...
2
votes
1answer
30 views

Multiple subscribe to one Rx.Subject

I try to create an observable with Rx.Subject that will be subscribe by multiple components. I have my WebsocketService : export class WebsocketService { private ws = null; private subject: Rx....
0
votes
0answers
23 views

Websocket Chat with contacts/room realization

I am writing a simple chat. Java Spring Boot Server + VueJS client. Now I have the simple realization: @Controller public class GreetingController { public static final Logger LOGGER = ...
-1
votes
0answers
35 views

Loop on a function until a new event appears in javascript [duplicate]

I have a function called myFunction. It's role is to read a json file when an event called randomEvent occurs. When a start message is received from socket.io (only one time), myFunction shall keep ...
1
vote
1answer
33 views

How to check internet connection in unity without fps drop

I'm working in Unity on a VR project. In this project we have websockets. For some internet issues we want to check if the websocket is still alive or on error and if this is the case we want to check ...
0
votes
0answers
14 views

How to host websocket app python server on Heroku without Flask?

So I'm making a school project and I have to make a python server and android client. So I've already created a server using websockets with python 3 (I'm not using Flask or socket.io and etc, just ...
0
votes
0answers
20 views

Spring Boot JSF 2.3 with JoinFaces Websocket

Has anybody implemented JSF 2.3 + Spring Boot + Websockets? I am using JoinFaces and I am trying to enable end-to-end implementation with WebSockets using the new tag provided by JSF 2.3. I have ...
1
vote
1answer
35 views

Websocket connection works in chrome but fails to connect in firefox?

Everything works as it should in chrome. no problems. In Firefox i get an error : Firefox can't establish a connection to the server at wss://yime.app This is reproducible if you go to https://...
2
votes
1answer
44 views

[email protected]_bind exception when trying to bind socket on AWS

I'm trying to launch a simple socket server on Amazon Web Services, but I get an error message when trying to bind the socket like this: var s:Socket = new Socket(); s.bind(new Host("Public AWS image ...