Questions tagged as 'websocket'

1
answer

Socket I.o does not update automatically

Hello, I'm using the Socket i.o and when I send a POST / EnviaTemperatura, it is not automatically updating on my site. What am I doing wrong? Node.js app.post('/EnviaTemperatura', function(req, res){ temperatura = req.body.temp;...
asked by 05.10.2016 / 14:13
1
answer

Check which Websocket sessions are inactive

How to check if a session is active, when the device that was connected to the Websocket server suddenly shut down? Because in this situation, if I use the Session.isOpen() method, the return is true . I think the return should b...
asked by 14.08.2014 / 21:18
1
answer

Uploading project node.js (with websocket) to Heroku

The project is this: link I followed all these steps: Heroku login ssh-keygen -t rsa heroku keys:add Procfile (web: tilestream --host neuberfranlights.herokuapp.com --host '*' --uiPort=$PORT --tilePort=$PORT --tiles=./tiles) heroku c...
asked by 05.06.2014 / 17:35
0
answers

How to put SSL in this system PHP Websokets

I created this chat on websokets but I can not use it in my SSL-enabled domain if someone can help link , they are 2 files from code to run 1 php executable and the javascript front end could not find on the internet I'm running the server o...
asked by 23.04.2018 / 20:55
0
answers

WebSocket in java and javascript

I have a simple server made by JAVA that completes a form from a particular web site . I use the JAVA application as the server to send the information and a extension made for Chrome that acts as a client , receiving this information...
asked by 30.01.2018 / 04:34
0
answers

Threads and interrupt ();

I would like to know how to pause my Thread efficiently and correctly with the Interrupt () method; I am with a part of my class that I started, but I would like to pause it. My project consists of a websocket , which I would like to st...
asked by 02.02.2018 / 19:50
1
answer

Connection via socket between servers

I have studied communication between two (or more) servers raised in NodeJS via REST más as I searched for content (references, explanations, benchmarks, etc.) I found indications of REST would bring more cost to the process and...
asked by 05.11.2017 / 14:15
0
answers

JSON for websocket gives error

I send a JSON to the websocket. JSON and sending is defined like this: var binary = btoa(Uint8ToString(view)); var toSend = { 'fileName': fileName, 'sequence': SendedChunks, 'data': binary.toString() }; var z = JSON.stringify(toSend...
asked by 30.09.2017 / 01:51
0
answers

What are the best practices for using WebSocket in a SPA application? [closed]

I would like to know the best practices for implementing an SPA application with Angular using WebSocket.     
asked by 11.07.2017 / 21:45
0
answers

Logging request.META does not work with Django Channels + Asgi_redis

I have a custom class for logging and my settings look like this: base.py LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose': { 'format': '%(levelname)s|%(asctime)s|%(mod...
asked by 01.06.2017 / 21:42