Questions tagged [websocket++]

1

votes
1

answer
52

Views

How to read and write more then 25000 records/lines into text file at a time?

I am connecting my application with stock market live data provider using web socket. So when market is live and socket is open then it's giving me nearly 45000 lines in a minute. at a time I am deserializing it line by line and then write that line into text file and also reading text file and rem...
Hardik Dhankecha
1

votes
1

answer
14

Views

Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR is thrown when trying establish and connect to a websocket server

As is shown in the title, I am getting an error while establishing and connecting to a server. I am using a npm library called simple-websocket in order to achieve this. On my server side I am using node and for my front end I am bundling the node modules using browserify. I have already tried chan...
MilesZew
0

votes
0

answer
12

Views

Javascript preventDefault() not working over https

I have a page where a submit button transmits text over websockets and then data is returned and shown on the page. I use preventDefault() to catch the event for the submit button so that the page doesn't refresh when it's pressed. This works fine over http, but for some reason when I load the site...
Michael Reiley
0

votes
1

answer
17

Views

Processing websocket onmessage events in order

I'm using a websocket API that streams real time changes on a remote database, which I then reflect on a local database. The operations on my side must be done in the same order (I create and update records as the data comes in). My problem is the messages often arrive in bulk, faster than I can pro...
Vaneik
6

votes
1

answer
115

Views

websocket._exceptions.WebSocketProxyException: failed CONNECT via proxy status: 503

Provided answer need some more details regarding authentication I'm trying to connect to qlik using certificates through WebSockets. Error: websocket._exceptions.WebSocketProxyException: failed CONNECT via proxy status: 503 Code: from websocket import create_connection import ssl senseHost = "d...
shaik moeed
1

votes
2

answer
1.1k

Views

Consuming both Strict and Streamed WebSocket Messages in Akka

I am experimenting with building a web socket service using Akka HTTP. I need to handle Strict messages that arrive in totality, as well as handle Streamed messages that arrive in m multiple frames. I am using a route with handleWebSocketMessages() to pass the handling of web sockets off to a flow...
Michael MacFadden
1

votes
1

answer
1.4k

Views

WebSocket Handshake - Unexpected response code 200 - AngularJs and Spring Boot

When I tried to establish websocket communication between AngularJS app and Spring Boot I'm getting the error: Error during websocket handshake - Unexpected response code: 200. Here is my JS code: function run(stateHandler, translationHandler, $websocket) { stateHandler.initialize(); translationHa...
Heril Muratovic
1

votes
1

answer
25

Views

Is ReST (HTTP) relevant for broadcasting data to many client application

I am currently working on a project made of many microservices that will asynchronously broadcast data to many possible client applications. Additionally, client applications will be able to communicate with the system (i.e. the set of microservices) via a ReST Open-API For broadcasting the data, my...
Philippe MESMEUR
0

votes
1

answer
21

Views

Call a boost function without callback

I am using boost-beast library for a websocket connection. You can refer to this example for the understanding what is happening. I have used the same example, but changed a few things: split the on_handshake(beast::error_code ec) into three functions A(beast::error_code ec),B(beast::error_code ec)...
RC0993
1

votes
2

answer
2.3k

Views

Websocket through Servlet in tomcat

I am trying to implement a web socket through servlet. My app server is tomcat 7. I could find examples, where WebSocketServlet class is used. But this class is deprecated and removed in tomcat 8. I see another alternative, which is to annotate the class with the following @ServerEndpoint(value = "/...
Hirak
1

votes
2

answer
3.5k

Views

live and free websocket server [closed]

This question is similar to WebSocket live server, but I was wondering if there are any free to use and live websocket servers as of now. I want a server that can send messages to another computer instead of just an echo server. This is different from the cited question above because I cannot use an...
Mashpoe
1

votes
1

answer
1.7k

Views

What actually the 'socket' object is in socket.io? How to make sure its usage is optimum? [closed]

I currently got a project in which I have to develop a web based board game using nodejs and socket.io. The thing is, I have jumped directly from Android development to Web dev and so I am facing some issues understanding concepts. I have already implemented some code where the client connects to th...
Srujan Barai
0

votes
0

answer
20

Views

Socket on server: How to fix => Failed to load resource: net::ERR_TIMED_OUT

Please help me, thank so much!!!! In my localhost did walk perfectly but now I got all on my server to see how it works online and it has an problem. GET https://mydomain.io:8890/socket.io/?userid=5b344be12820260db552b202&room=5c347250ac210c52bc542f12&EIO=3&transport=polling&t=MYV9V2s net::ERR_TIMED...
gait
1

votes
2

answer
732

Views

Websocket delay in sending a message

currently I am developing an webapp which will run on a tizen device (Samsung Gear S3). The purpose of that App is to send a message to a websocketserver (written in Python and running on my Computer) when swiping. When I swipe to the right I send a string1 and when I swipe left I send string2. The...
Pluxyy
1

votes
1

answer
245

Views

Overhead of WebSockets on Apache Server

I have built a website with PHP + Apache + JS + HTML 5. Now there is a point where I have to tell the user every second if the server is connected and ready to receive data and/or internet connection is lost/available or whatever else which can tell the user to not to send data to server because of...
1

votes
1

answer
3.5k

Views

Websocket error: ERR_INVALID_HTTP_RESPONSE

So I have set up a websocket server with PHP, Ratchet. I have did few tests with telnet and ncat and they worked fine. But, when I try to connect to the server with javascript it doesn't work.I get that error: WebSocket connection to 'ws://127.0.0.1:8080/' failed: Error during WebSocket handshake: n...
sh4dowb
1

votes
3

answer
830

Views

express-ws alternative in TypeScript

I have been searching for a few days now but still haven’t found any alternative or help writing a TypeScript Declaration for it as I also tried that. https://www.npmjs.com/package/express-ws Important is that it works with any other route in express. Authentication, Roles and Path Parameters.
Pat
1

votes
1

answer
526

Views

View websocket traffic in chrome developer tools with React Native

I'm using the WebSocket support available for React Native as documented here: https://facebook.github.io/react-native/docs/network.html My problem is, I have no way to monitor the actual incoming/outgoing websocket traffic in chrome developer tools. I know for certain in one case, that a remote ser...
randombits
1

votes
2

answer
34

Views

Can someone read object sent with socket.io emit even though it's not printed out for user in frontend

So I'm working on node.js app that pushes objects via socket to update user with latest information. That object has user data populated with it. I'm wondering if someone can see that information somehow even though it's not printed out? Should I remove sensitive data from object before emitting it...
Sam Axe
1

votes
1

answer
179

Views

WebSocketApp vs create_connection

I was wondering if someone could explain the difference between: ws = websocket.create_connection('wss://echo.websocket.org') and ws = websocket.WebSocketApp('wss://echo.websocket.org') within the Python package websocket, as the docs aren't very clear.
therealcode
1

votes
1

answer
73

Views

Perl: forking an WSS connection results in closure of the socket when child exits (doesn't happen with WS)

(Edited to provide a reduced test case as per comments below) I'm facing an odd situation, where if I fork a "WSS" connection to send a message, the socket gets closed when the child exits. However, when I fork to process a "WS" connection, the connection remains open when the child exits. Server De...
user1361529
1

votes
1

answer
52

Views

Can the client side access socket assigns?

I know that in Phoenix Channel the server can keep states via socket assigns, e.g. def join("room:lobby", payload, socket) do socket = socket |> assign(:message, Enum.random(@messages)) |> assign(:albums, []) {:ok, socket} end However, I haven't been able to find out whether there's any way for the...
xji
0

votes
0

answer
11

Views

How to detect if a variable is not changing for a certain period of time?

I want detect if machine is idle for 15s and if so a popup show. when data is coming from the server my variables do a mathematical calculation and change the value. so what I want is if this variable doesn't change for 15s a popup show. I have tried setTimeout for this. obj = JSON.parse(evt.data);...
Emma Scarlet
1

votes
3

answer
1.4k

Views

How to force Tornado websockets to generate error page on handshake

I am writing a small app where I use Tornado websockets. I use cookies for authentication, and I therefore want to check this when establishing the web socket. So here is the challenge (building on the official websockets example): class EchoWebSocket(tornado.websocket.WebSocketHandler): def open(se...
agnsaft
0

votes
1

answer
19

Views

How to Attack the Firebase Database Rules?

I'm working with Firebase for an iOS application. I'm trying to understand how strict my rules need to be, so am trying to attack them myself. My thinking is, if I can find ways of circumventing really lax rules (such as .read and .write are allowed, or simply require authorization) I can build more...
Akiva
0

votes
0

answer
5

Views

Not able to connect websocket to the server (https) on iOS app in both release and debug mode

CONTEXT: I have developed a react-native app that uses websocket (using socket.io-client) to connect to https web server (nginx). PROBLEM: I am not able to connect to the https webserver(nginx) using websocket on iOS app (real device) in both release and debug modes. EXTRA INFORMATION: The app is p...
user3763125
0

votes
0

answer
7

Views

Django Channels connection with Web socket

I have implemented the Django Channels as given in the tutorial. The chat works fine and i am able to send and receive messages in a group. But when i try to send a message from a web socket to channels chat it does not display the message. Instead an error is populated. However, i am able to recie...
Femme Fatale
1

votes
1

answer
899

Views

stomp-websocket + ActiveMQ

I managed to get ActiveMQ to work with Stomp over WebSockets https://github.com/jmesnil/stomp-websocket but I'm having a weird issue related to multiple consumers/subscribers sharing the same IP/router. Our ActiveMQ server is located outside our office. When two subscribers from the office connect t...
user628896
1

votes
1

answer
2.9k

Views

How to use noVNC to connect to a VNC server through browser

I am trying to install novnc on CentOS. My default repositories doesn't have novnc listed in them hence says "-bash-3.2# yum install novnc Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.lga7.us.voxel.net * extras: mirro...
Ram
1

votes
3

answer
1.4k

Views

Real time messaging and Internet Explorer

We are currently working on an app that uses pusher.com to maintain a list of available people on our chat application. Unfortunately, some of our users have IE < 10 (ie no websockets) and don't have flash, so pusher.com will not work. Also, pusher is becoming more and more expensive for our usage (...
cpa
1

votes
1

answer
1.3k

Views

Creating web socket server on Azure hosting using Node.js?

I have a node application I am trying to host on Azure, that create a websocket server. I am trying to create the web socket server using the code below: var socket = require('websocket').server; ... server.listen(1111,function(){ console.log('Http server is listening on port 1111'); }); When I do...
Abe Miessler
1

votes
1

answer
6.3k

Views

PHP websocket server and mysql connection

I have a php websocket server based on this one. This websocket server runs on a different apache than the public webserver but on the same physical server so I need a database connection to retrieve userdata. The userdata is fetched by the current session id which is also updated in the database wh...
QQping
1

votes
2

answer
493

Views

Twitter like update when new rows are added to the db

I have a page, the contents are gotten dynamically with php and Mysql.I use a foreach loop to display all the content. foreach($data as $key){ echo " $key['post'] "; } Now I get my feed just as it is, but the problem here is, the page needs to be refreshed before you see new post rows from the datab...
Saff
1

votes
1

answer
3k

Views

Sockets.io build error, fatal error c1083, please advise

I am trying to unpack a nodejs module socket.io. I was getting a build error to install Visual stdio 2005 and .net framework2 sdk, so I did. now I am getting the following error with no advice on how to fix it. please help me. I am using vista, 32 bit. Your environment has been set up for using Node...
user2004018
1

votes
1

answer
422

Views

“Pushing” images into a browser with nodejs

I'm a newbie to nodejs. What that out of the way, here is what I'm trying to do. I'm working on a project requires to "push" images into the DOM of the browser as soon as they are appear in db. Think about out it as Pinterest, but when new image is uploaded to Pinterest, it's automatically delivered...
Michael Khait
1

votes
3

answer
3.8k

Views

Getting IP Address of the remote peer in Websocket API for Java EE 7

How can I get the IP address of the remote peer in Websocket API for Java Glassfish ?
Neil
1

votes
2

answer
1.5k

Views

Is this the right choice for realtime notifications? php + Ratchet (websockets)

I'm new to websocket and realtime applications and I would need some clarifications. I developed an application for a customer that involve some users and product data. It is a PHP web application running on the internal apache server. The client side of the app is based mainly on JQuery, and for so...
agodoo
1

votes
1

answer
408

Views

What's the best way to implement socket.io as a submodule within ExpressJS?

I'm trying to build an ExpressJs based app using the submodule architecture suggested by tjholowaychuk. I'd like to also have some realtime socket interaction, so I'm trying to integrate socket.io. I'm struggling to find the best way to do this as a sub app and allow both Express and socket.io liste...
Dan Steele
1

votes
2

answer
762

Views

Remote simulation with nodejs?

At client side, I will have a physics simulation, user will create the simulation arguments using HTML5 based interactive view. The simulation arguments will be sent to server side, where child nodejs process will calculate the results and send back to client. The simulation results are emitted to c...
simo
1

votes
1

answer
1.6k

Views

error C2182: '*' : illegal use of type 'void' c:\boost_1_53_0\boost\smart_ptr\intrusive_ptr.hpp

I'm trying to develop a websocket++ server on my windows 7 laptop for ease (not good with vi yet, don't want to constantly ftp). I will move to Ubuntu 12.10 at the end. I'm using a Visual C++ Win32 Console Application project. I've included the websocketpp directory, installed boost 1.53.0 How do y...

View additional questions