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
1answer
9 views

Listen to websockets running Raspbian from Windows

I've created a websocket using Python's asyncio and websockets modules. This servers works properly in the same machine. This is the actual code for the server:import sysimport osimport asyncio...
0
votes
0answers
7 views

Uncaught ReferenceError: ReconnectingWebSocket is not defined

I'm working on developing a chat using Javascrips, and the Electronjs. However, I have this problem: Uncaught ReferenceError: ReconnectingWebSocket is not definedat conectaServidorSockets (teste....
-4
votes
0answers
10 views

Is it normal create web socket with video and audio on java?

If i will use server on java for broadcast video and audio enter link description herehow many connections can it support?
0
votes
0answers
15 views

Why i need to mask and frame the data if it is possible to send the data as plain text in WebSocket javascript?

I am a beginner and learning to WebSocket javascript. After learning the basics, I created a simple WebSocket based chat application, used php Socket Extension on the server side, and successfully did ...
0
votes
0answers
11 views

Ratchet + AWS EC2 + SSL + ProxyPass -> Invalid Status Line

I'm trying to create a video chat using ratchet with laravel and it worked fine on localhost but when I deployed it on an EC2 instance, it needed some configuration. First, I can access my app with ...
-2
votes
0answers
9 views

Convert BigDecimal number to String over websocket frames

I have a application which sends data to UI via caplin liberator. It uses websocket frames to communicates with UI using RTTP connection.The data, which I send over websocket frames, consists of ...
0
votes
1answer
11 views

React native app can't connect to websocket server running on localhost

Given the below code, the socket initialized with wss://echo.websocket.org/ calls onopen. The one pointing at my local-running server, does not.constructor(props) {super(props// this ...
0
votes
0answers
13 views

Communicating between multiple app instances when using web socket?

When user connects to server via websocket. Socket connections are stateful, the server it connected with, is the only server that would be able to communicate over that socket.I'm designing a chat. ...
0
votes
0answers
16 views

DirectLine token is getting expired and I'm not able to generate a new one(using websocket)

I'm using BotFramework DirectLine websocket to post and receive messages with the bot. While it works fine, the directline token expires in about half hour, forcing my app to generate a new token. I'm ...
0
votes
0answers
10 views

websockets save data for real time communication

I am working on a collaborative text editor using websockets. I am using mongodb as the database. I have a listener and as user types, I emit the new data. So, I am emitting the data for every ...
0
votes
1answer
15 views

How to break setinterval in io sockets - Nodejs

There is an api which sends some json data.The nodejs server get this json data and send client with websocket every 5 seconds.If the connection is on when a clent connects it works but when the ...
0
votes
1answer
25 views

What does 'opcode -1' mean in Chrome?

I'm using Chrome browser and I'm trying to create a WebSocket connection (using javascript) but sometimes I get an error. When I'm looking in Developer Tools for the WS connection, I see OPCODE -1. ...
0
votes
0answers
28 views

Checking for a specific response from websocket in Vue

My goal is to open a websocket and grab the appropriate data that comes back. So far I have had success for the first couple of requests I need to make in order to then be able to make subsequent ...
0
votes
0answers
14 views

Python producer and consumer on one websocket connection

I'm currently running two separate python programs, listening on different websockets. One produces and sends camera data, the other receives JSON messages. As websockets can receive and transmit ...
0
votes
0answers
7 views

serving images from zeromq and socket io in real time

i have a fairly complex wordpress app. basically what i want to do is serve images to the client in real time. there were a few threads i came across on here and other similar questions on google but ...
0
votes
0answers
11 views

Connecting a fake client to ws WebSocket module

So I have a WebSocket wrapper built around the ws module and I'm trying to create a test suite but I can't use the WebSocket in the traditional sense as it would require connecting it to a web page so ...
1
vote
1answer
13 views

ImportError: cannot import name 'WebSocketApp' from 'websocket' (/Users/raphaelhen/Desktop/websocket.py)

I am new here, and in programing. until toady I got all my answer here, but I was not able to find id this time so this is my codefrom bitmex_websocket import BitMEXWebsocketws=BitMEXWebsocket(...
0
votes
0answers
9 views

Bitfinex Websockets API - Subscribing to channel

I have the following code to subscribe to the BTCUSD ticker channel.#!/usr/bin/env pythonimport asyncioimport websocketsimport jsonasync def loop():async with websockets.connect('wss://...
-1
votes
0answers
13 views

In what possible ways can a client send data to a server [on hold]

I'm reviewing a website which happen to communicate with server somehow but i can't figure out what method it's being used. I tried checkingxhr/fetch/ajax request in chrome devtools but seeing no ...
1
vote
0answers
30 views

Websockets working only in localhost and not in staging or production server

I am trying to create a realtime application in PHP using websockets. I had referred this article . I am able to run this application on localhost but not in aws server. I am getting this error (...
0
votes
1answer
39 views

Using Websocket Subscribe call multiple times?

My Web-socket-service.tsimport { Injectable } from '@angular/core';import { OidcSecurityService } from 'angular-auth-oidc-client';import { WebSocketSubject } from 'rxjs/observable/dom/...
0
votes
1answer
15 views

Websockets+Single instance+crosstab communication best way?

I'm utilizing websockets for passing json messages but I don't want multiple ws connections if multiple tabs are open.To reduce the connections I want to implement a single ws connection object that ...
0
votes
0answers
23 views

php - failed: Error during WebSocket handshake: net::ERR_INVALID_HTTP_RESPONSE

I am using php socket in server side and HTML5 WebSocket in client side. My client side code works well, because I tried it with http://www.websocket.org/echo.html and it worked.But the problem is ...
-1
votes
0answers
14 views

AngularJs real time table value change from data from Socket.io

I am trying to update the HTML table in real time with the data coming from socket.The data from socket comes every second and sometimes even faster. I am getting the data it comprises of 200 rows of ...
0
votes
1answer
19 views

Websocket - sockjs - InvalidStateError: The connection has not been established yet

When using stomp.js and sockjs from within Javascript, I can connect well with a Spring Boot backend. When using stompjs and sockjs from with Angular5, I keep on getting these errors: ...
0
votes
0answers
7 views

MessageWebSocket ConnectAsync times out when using TLS 1.2 and self signed certificates

I'm trying to send some bytes via a Socket connection to a server using TLS 1.2 and self signed certificates in an UWP app.I'm trying with the code below, but I get an error: WinRT information: The ...
0
votes
1answer
65 views

How to use JSONDecoder to decode JSON with unknown type?

Here is my scenario: I have a swift WebSocket server and a Javascript client. Over this same WebSocket I will be sending various objects that correspond to different Codable types. It is simple ...
0
votes
1answer
18 views

How to connect socket.io inside docker-compose between containers

I have one container that is serving http on port 4000.it has socket server attacheddocker-compose:dashboard-server:image: enginetonic:compose1.2container_name: dashboard-server...
0
votes
0answers
13 views

Connecting to WSS with websocat in Android

I need to connect to a WSS server that uses a self-signed certificate from an Android device with websocat.websocat wss://example.com works fine with ceriticates signed with authorities, but fails ...
-1
votes
0answers
14 views

How to implement a lightweight secured websocket server on .NET (core)

I'm trying to implement the most lightweight secured websocket server (wss) in .NET/core. I need that in simple console/service app.I've found several examples of basic websocket servers without SSL/...

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