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.

learn more…| top users | synonyms (1)

2
votes
1answer
189 views

Watson ignores inactivity timeout while recognizing “audio/wav”

I try to implement Speech recognititon using Watson Speech To Text service.I wrote some code in javascript using "MediaStreamRecorder" library. I send data through Websocket and get this problem: if ...
0
votes
1answer
13 views

Websockets & TCP: Sending few small packages with minimal delay

I am writing a client application to a websocket server.I receive a lot of messages and occasionally (every 30 minutes or so) want to send a small block of data, less than 1kb.I want to minimize ...
0
votes
0answers
14 views

how to insert websocket data into mysql db using node.js or php

I am looking for direction on this or possible shortcode. I want to store crypto exchange rate data on a MySQL database. Now the reason for this is that if I allow a user to use exchange rate directly ...
0
votes
0answers
7 views

Tomcat 8.5 threading model

My application uses Web Sockets via JSR 356 implementation by Tomcat 8.5 (servlet 3.1). According to the JSR, it is supposed to use NIO but I am not sure to understand. When a client requests a Web ...
-3
votes
0answers
14 views

Audio live streaming [on hold]

please I'm working on a java-based web app which should broadcast live audio coming from a specific user.I used first signaling strategy (RTCPeerConnection) and I found out that it is not suited for ...
0
votes
0answers
15 views

How to connect java client to java server host on heroku with Websockets?

i'm trying to make a java client to connect and send data to a java server hosted on heroku platform using websockets, but after many tries following diferentes source it simple don't work, i kown it ...
0
votes
2answers
13 views

Deciding whether to use ws or wss?

I have an account with a trading exchange and they have a websockets API which supports ws://... and wss://...For the non-authenticated channels such as the current state of the orderbook, is it an ...
0
votes
1answer
9 views

Frame-based and stream-based protocols

I am reading WebSocket specification, it's written:The WebSocket Protocol is designed on the principle that there should be minimal framing (the only framing that exists is to make the protocol ...
-1
votes
1answer
37 views

How to connect HTML WebSocket to C++ Socket

I have an app where I am trying to connect to a C++ server which opens up a sockethttp:// Client side var ws=new WebSocket('ws://<<IP:PORT>>');In the server side, it is opening up a ...
0
votes
1answer
7 views

How to manually test lagom websocket API?

I downloaded Lagom example project which includes simple websocket endpointnamed("example-stream").withCalls(namedCall("stream", stream)).withAutoAcl(true)When I launch the ...
0
votes
0answers
15 views

How can I use legacy sessions ($_SESSION) with symfony sessions in Ratchet websocket application

Ok let me start out by saying I'm not a big fan of frameworks. I have already developed my application using legacy sessions (login.php):<?php$_SESSION{'user_type'}='u';$_SESSION{'id'}=$q[0]...
-1
votes
1answer
76 views

Real time Quoinex (websockets)

I'm on the end where I'm struggling to find any help with regards to a WS based implementation for quoinex (whether via pusher or otherwise) . could you help with something, that worked for you. Is ...
0
votes
1answer
13 views

Websockets: Are Rachet & autobahn from npm compatible?

I'm experimenting with the Ratchet php library. In particular, I've been trying to integrate their push integration demo into a React application.Their demo references a seemingly one-off version of ...
-1
votes
0answers
7 views

why does socket id changes Id always every 3 seconds and how to disconnect a specific socket? socket io

I mean I tested it like this`global.io.on('connection', function (socket) {console.log(socket.id);});`i keep on getting many random aejgorehogwhy is that ?Update:what i mean is that i ...
0
votes
1answer
16 views

Is there a way to get the Response Headers of WebSocket request?

On a Network tab (Chrome browser) we can see a Headers tab.Further if we have a request list we see General, Response Headers and Request Headers lists.For example:General:Request URL: wss://...
0
votes
1answer
14 views

Is webSocket.onopen in this example a callback? How does it work?

I'll be brief. I'm trying to understand how evt is being passed to webSocket.onopen: wsUri='ws://echo.websocket.org/';webSocket=new WebSocket(wsUri);//How is evt actually passed?webSocket....
0
votes
0answers
15 views

Emulator sometimes fails to hit webservices no error as well as no response

I am using Droid4x emulator to run application. In my application I am doing 2way communication. App connected with server through Socket.io, from Socket.io on message function I am post message to ...
0
votes
0answers
11 views

Data only logging to console after closing websocket using socket.io

TL;DR: I'm working on an application using PRAW, Flask, Flask-SocketIO on the back end and the SocketIO JS library on the front end to live-stream reddit comments as they happen. I have a websocket ...
2
votes
0answers
19 views

react + socket.io emits not going through - basic error

There must be a simple mistake in my understanding of reactjs or socket.io. I have a server that sends "speed" values iterating from 2 to 5, and a client that receives them and displays them.The ...
1
vote
1answer
23 views

React with Socket.io - continously re-render on “socket.on” event

I'm trying to write a client that opens a socket.io connection with a server and then continuously re-renders the screen with an updated number that is sent from the server through the socket. I can't ...
0
votes
0answers
12 views

Best way to implement jwt auth with uwebsockets for nodejs? [on hold]

I'm using jwt to auth my clients on my express server, but want to auth them for my uws server as well to prevent sniffing. What is the best way for me to do that with uws and jwt? I only have to auth ...
0
votes
0answers
11 views

Connecting to GDAX websocket api using socket.io with webpack

I want to connect to the GDAX websocket api with an in browser application built with react and webpack. I cannot use the offiicial gdax-node or gdax-toolkit api's because they are not compatible ...
1
vote
0answers
17 views

Websocket response code: 204 (IIS8)

I have a .NET Core 2.0 application running with the preview SignalR. I'm running on Windows Server 2012 R2 behind IIS 8.5.Websockets are enabled in the server roles, and are also configured in IIS....
0
votes
0answers
9 views

Why does WebSockets Intermittently fail with Index Out of Bounds on ReceiveSync?

using the following code blockusing System.Net.WebSockets;public static async Receive(ClientWebSocket webSocket){string messageString=string.Empty;WebSocketReceiveResult result;...
1
vote
2answers
55 views

Upload file via WebSocket (BinaryWebSocketFrame) and Netty

I'm trying to upload a file via websockets with the following code:let file=e.target.files[0]let ws=new WebSocket("ws://127.0.0.1:8080/")ws.binaryType="arraybuffer";var reader=new ...
-3
votes
0answers
22 views

Java Tools or Libraries for testing Websockets and APIs? [on hold]

I need to make integration test to Websockets in Java, but also need it supports HTTP requests. An example of the second is https://github.com/intuit/karate , but can not be used for websockets.Any ...
1
vote
2answers
1k views

Detect local devices using HTML5 websocket

I'm working on a project which uses HTML5 WebSockets to connect with an iOS App. I need to display a list of near by (within the same local WiFi network) iPhones/iPads inside the webpage.Is it ...
0
votes
1answer
42 views

Angular CLI: Proxy websocket with proxy.conf.json

I am trying to proxy websockets using ng serve --proxy-config proxy.conf.json with Angular CLI but could'nt get it to work as I am getting this error: WebSocket connection to 'ws://stream/connect' ...
0
votes
0answers
29 views

How to get python websocket output from one module to another

I have created a websocket, which is streaming inputs fine.I need to open the websocket from another module and cache the messages.I can start the websocket from the other module by performing:...
0
votes
0answers
800 views

PHP and Xampp to serve page but Node.js to chat

I have asked two questions but I still couldn't solve the problem. I am trying to create a chat application with node js and socket io. But the problem is that every example I have seen in the ...
2
votes
2answers
1k views

Node.js for chat in a PHP website

Is it possible to create a PHP website with chatting capabilities, the chatting capabilities written in Node.js? It's just that all the tutorials I have read, the index page was served by Node.js. I ...
0
votes
1answer
1k views

Access is forbidden for Node.js

I am trying to create a simple chat application using Node js. I am using a Windows operating system. As local server I am using Xampp. I have installed Node. I have also installed socket.io using ...
0
votes
1answer
17 views

How do I write a Java WebSocket Servlet that can support implementations for either Tomcat or WebLogic

I'm in the process of designing a new chat module for a large Java-based webapp that uses Tomcat by default, but supports WebLogic for one of our clients. I have been looking into using WebSocket for ...
0
votes
1answer
22 views

Python 3.5 Asyncio and Multiple websocket servers

I am using Python websockets 4.0.1 on Ubuntu. I want to have 2 websocket servers running. I was able to get this to "kind of work" by creating 2 threads and independent event loops for each one. By "...
0
votes
0answers
8 views

How to configure a PHP WebSocket in my VPS

I create a chat which uses a PHP websocket, the problem is that in my computer, it works normal, but when I upload it to my VPS the socket is executed correctly using the command php -q server.php but ...
-1
votes
1answer
24 views

HTML5 / PHP WebSocket connection to failed: Error during WebSocket handshake: Unexpected response code: 200

I Think some people Just like to do press "This question does not show any research effort; it is unclear or not useful" Button. I really don't know what are they trying to prove?If you think or ...
0
votes
1answer
27 views

Pyhon 3 Websockets, how to properly close socket

I have the following class for opening my websockets:import osimport asyncio import websocketsimport threadingclass Server:def get_port(self):return os.getenv('WS_PORT', '9002')...
0
votes
1answer
16 views

Why websocket server closes connections?

I have websocket nodejs server with ~2000 concurrent connections and server closes them periodically. I don't know the reason.I catch it in my client code this.ws.onclose=function(){//...
0
votes
1answer
9 views

A lot of socket endpoints in python?

I need to parse some Crypto exchanges, such as Poloniex and e.t.c.. I can subscribe their socket apis to getting order-books. Which is the best way to connect to as many as possible order-books? (at ...
0
votes
0answers
34 views

Send Binary Image Data Over WebSockets In C++

I am looking to send image data in binary format from a C++ WebSockets server to the browser and then have the browser to interpret the data to display the image to the end user.Here is my C++ code ...
0
votes
0answers
9 views

Chat feature for app with React/Redux fronend and Grails 2.4.5 backend

Hi I have a React Redux frontend and Grails 2.4.5 backend. I have to add chat feature. Websockets/ Socket.io http://plugins.grails.org/plugin/zyro/grails-spring-websocket is for Grails 3. Any ...
2
votes
1answer
37 views

Is there a hard limit on socket.io connections?

BackgroundWe have a server that has socket.io 2.0.4. This server receives petitions from a stress script that simulates clients using socket.io-client 2.0.4.The scrip simulates the creation of ...
0
votes
1answer
37 views

Android Nougat limits network connection when app in foreground

I'm developing Android app with background service. Service is running in its own process (like com.example.app:extProccess). Service creating WebSockets connection. But after less than 1 min after ...
0
votes
0answers
12 views

Error in JSF f:websocket

Since Primefaces push is deprecated, i want to change to JSF 2.3 with f:websocket.Therefore i added a websocket in my xhtml:<h:form><f:websocket channel="testChannel" onmessage="...
0
votes
1answer
13 views

Connecting and sending message between Spring WebSocket instances

I have multiple instances using Spring Boot WebSocket (created following the first half of Spring's guide). I need them to connect to other instances at specific hostnames and ports and to be able to ...
0
votes
1answer
15 views

Spring Boot Web Socket RabbitMQ not available

I have simple spring boot app with web socket configuration.When i run my app with SimpleBroker(provided by spring) everything works fine, but when i want to use rabbitmq instead of SimpleBroker, i ...
-2
votes
1answer
21 views

Websocket client in java

I want to create a java class and I would like to create a WebSocket connection to the server. I have seen a couple of examples with javax.websocket, however, I am unsure how I install and use it as a ...
1
vote
1answer
85 views

Websocket blocks without timing out on client plug pull/power loss

I have an odd issue with my Tomcat + Spring websocket application. When a user disconnects without sending a "closing" signal, due to power loss or a plug pull, the thread will block about 10 seconds ...
0
votes
0answers
8 views

Grails oauth 2.0 WebSocket security

I'm developing a web app powered by Grails 3.0 and protected with oauth 2.0 and it works as a charm.I now need to add a websocket support.I'm using grails-spring-websocket:2.3.0 plugin to add ...
-1
votes
0answers
16 views

JS new Event - websocket connection failed

I'm trying to create new event and execute it :<button class="btn-flat-blue trigger-event">Trigger Keydown event</button><script>document.querySelector('.trigger-event')....

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,