Most voted "websocket" questions
Websockets is an API and protocol for bi-directional full-duplex communication over TCP sockets, commonly used with HTML5 and available in recent versions of most browsers.
Learn more…134 questions
Sort by count of
-
1
votes2
answers1384
viewsHow can I create a stream from a video that’s on the server?
As the title itself already says, I need to create a live stream of a video from the server, or youtube or something like that, can someone give me a hint of how I can start? I researched a lot, and…
-
1
votes1
answer243
viewsCheck 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? For in this situation, if I use the method Session.isOpen() the return is true. I…
-
1
votes1
answer213
viewsWebsockets connections with PHP
I’m using this class to work with Websockets in PHP together with HTML5 and I have two questions about the connections. How can I list all active connections on that server? As I can disconnect a…
-
1
votes0
answers218
viewsSave data by websocket
I am developing a system using Angularjs and Websocket (PHP or Nodejs I am still defining), where the information of the forms I intend to save via socket, ie by sending an array with the…
-
1
votes0
answers150
viewsAuthentication and authorization in Websockets
Good afternoon, I was tasked with building a Java application that communicates with a mobile application developed with hybrid technologies (HTML5, CSS3 and Javascript), when researching in the…
-
1
votes1
answer1313
viewsUncaught Invalidstateerror: Failed to execute 'send' on 'Websocket'
Uncaught Invalidstateerror: Failed to execute 'send' on 'Websocket': Still in CONNECTING state. (index):29 (Anonymous Function) Code: function smConnect() { ws = new…
-
1
votes1
answer590
viewsReconnect Websocket after connection loss
I use this code to connect to my server with Websockets: (function(nameSpace) { function createMethod(method, options, stateCallback) { var that = this; this[method] = function() { if (stateCallback…
-
1
votes0
answers64
viewsChange Request Headers to WS protocol
I have an app Ionic using an API Ruby on Rails. To authenticate, I am using Gems Devise and tiddle where I pass via the Angularjs X-USER-EMAIL and X-USER-TOKEN in the Request Header Have a part of…
-
1
votes0
answers258
viewsreal time application with php
I have the following problem I need to implement real-time actions in an application already developed using php running on iis. I already managed to make my application communicate with an…
-
1
votes1
answer384
viewsWebsocket with PHP using IIS 8.0 server
Good morning. Next, I downloaded the following project as an example to create a Websocket: http://www.nhatanh.net/blog/websocket-php-html5-tutorial-echo-server.html Testing on a machine with Linux…
-
1
votes0
answers43
viewsSocket X Android
I’m doing a study of socket on Android (A app of chat with some more functions on other screens) but due to the little knowledge at the time I was 'stuck' at one point. How can I create a single…
-
1
votes0
answers122
viewsMutiplas connections websocket
I have a script that makes 4 or 10 connections with a game after I click the 'run bots' button, I tried to create a 'run bots2' button to create more 4/10 connections with the server but without…
-
1
votes0
answers53
viewsWebsocket and Cakephp
How to integrate Websocket into a Cakephp 1.2 system that runs on an Apache server with a Postgresql database? I need to chat, and all conversations will be saved in this bank, separated by system…
-
1
votes0
answers206
viewsHow to identify the user in Ratchet PHP
I’m creating a multi-room chat with websockets, using PHP Ratchet. The framework itself facilitates the process of identifying the user, seeking his name through cookies, as can be observed here:…
-
1
votes0
answers29
viewsWhat are the best practices for using Websocket in a SPA app?
I would like to know the best practices to implement a SPA application with Angular using Websocket.
-
1
votes1
answer235
viewsSocket I.o does not update automatically
Hello, I am using Socket i.o and when I submit a POST /Enviatemperatura, it is not automatically updating on my website. What I’m doing wrong? Node.js app.post('/EnviaTemperatura', function(req,…
-
1
votes0
answers69
viewsSockjs Websocket
I’m trying to use the Sockjs, and I put in the HEAD of my index the <script src="//cdn.jsdelivr.net/sockjs/1/sockjs.min.js"></script> and javascript: var wsUrl = 'ws://' +…
-
1
votes0
answers28
viewshow to add headers to websockets (python)
I’m using the lib websockets python, and for me to make the connection (discord.com/api), he asks for a Authorization import asyncio import websockets async def connection_websockets(): uri =…
-
1
votes1
answer28
viewsSend Blob/Arraybuffer object by Websocket
I am making a Websocket connection and trying to send a Blob/Arraybuffer object resulting from a screen save, but what arrives on the server instead of bytes is [object ArrayBuffer] Example of a…
-
1
votes0
answers13
viewsPush Notification - Own service
I wonder if someone has already implemented a push notification service of their own, if there is such a possibility. I have a React app on and multiple cloud services that communicate by messaging.…
-
1
votes0
answers34
viewsLogging request.META does not work with Django Channels + Asgi_redis
I have a custom class for logging and my Settings this way: base py. LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose': { 'format':…
-
1
votes0
answers47
viewsJSON for websocket gives error
I send a JSON to the websocket. JSON and sending is set like this: var binary = btoa(Uint8ToString(view)); var toSend = { 'fileName': fileName, 'sequence': SendedChunks, 'data': binary.toString() };…
-
1
votes2
answers644
viewsReal-Time How it works. Because I’m having problems with my Laravel 5.4 tests
What do I need? I need when a user in the frontend sends a message to the system and the system (Dashboard backend) to receive a real-time notification that is the message just created. I’m doing it…
-
1
votes1
answer336
viewsSocket connection between servers
I have studied the communication between two (or more) servers raised in Nodejs via REST as I searched for content (references, explanations, benchmarks, etc.) I found indications of REST would…
-
1
votes1
answer3737
viewsSimple script to know how many users are online on the site?
Friends, is there a simple script in php (or some other solution for linux php/mysql server) to know how many users are online on the site? I read that websocket is good for chats. In my case, it’s…
-
1
votes0
answers200
viewsThreads and Interrupt();
I wonder how I can pause my Thread efficiently and correctly with the interrupt method(); I’m with a part of my class that I started, but I’d like to pause it. My project consists of a websocket,…
-
1
votes0
answers246
viewsWebsocket in java and javascript
I have a single server done in JAVA that complete a form of a particular website web. I use the java application as a server to send the information and a extension made for Chrome who acts like…
-
1
votes1
answer49
viewsHow do I kill a websocket?
I’m having a hard time kill the websocket that runs inside my java app, I can’t find answers anywhere. I need this, because I’m using it with a Chrome extension to fill out a website’s Forms, but…
-
1
votes0
answers37
viewsHow to put SSL in this PHP Websokets system
I created this chat on websokets but I can’t use it on my domain with SSL if someone can help http://rlag.esy.es/, are 2 code files to work 1 php executable and the front-end javascript could not…
-
1
votes1
answer139
viewsIdentify/Authenticate client on websocket
I’m creating a simple server sockets in PHP, but I’m having some doubts, since this is the first time I’ve done anything like this. My doubt is how I identify the client, that is, through an…
-
1
votes1
answer62
viewsComponent update in React via websocket
Hello, I have a component in React that connects to a websocket with the following parameters (NUM_ITEMS=100, MSGS_PER_SECOND=100). Therefore, I list a table with 100 items and update them by ID to…
-
1
votes0
answers64
viewsWhat is the best way to create a socket with multiple connections that will perform an action in another API
I am creating a webservice with PHP, to receive TCP connections, so I opened a socket that receives multiple connections. But when a device connects to the server I will have to search another third…
-
1
votes0
answers41
viewsPusherexception SHA256 appears to be Unsupported how to resolve?
I am implementing in the system the websocket technology, where we use the Laravel-echo-server along with Pusher, the process to open the channel and trigger events is working normally. But from…
-
1
votes1
answer158
viewsGoogle Maps and Websocket Flutter
All right, come on... I’m developing an application using flutter (I’m new to the Dart language), so I need my application to update the markers of maps periodically along with Websocket, but when…
-
1
votes1
answer270
viewsHow to set up a certificate to make a connection to Javascript Websockets
How to configure a certificate to make a connection with Javascript Websockets, using c’s Superwebsocket server#? I need to create a websocket connection on an https page, the only way is using…
-
1
votes0
answers29
viewsRancher 1.6 websocket does not work
I’m having trouble using Socket.IO inside Rancher 1.6. Websocket connections sometimes even work but most of the time it is giving 503 or 502 error. I tried some settings within Haproxy to make…
-
1
votes1
answer93
viewsOkhttp on Android connects to my websocket server but does not reflect outgoing messages
Following this documentation https://spring.io/guides/gs/messaging-stomp-websocket/ created a small spring project capable of sending messages in real time using websockets, the web part stays this…
-
0
votes1
answer500
viewsHow to use ping/pong in Websocket Java
I searched for material on the Web but I haven’t found how to implement ping/pong messages on the Server and Client respectively. I know how to send and receive, but I still don’t understand the…
-
0
votes1
answer386
viewsRatchet Fatal Error: Class 'Myapp Chat' not found in C: wamp www bin chat-server.php
I’m trying to learn how to use the new Html5 API, Websocket, and I decided to start testing Ratchet, which is a php library. Anyway, I followed all the steps of this tutorial to create a basic chat…
-
0
votes2
answers1840
viewsWebsocket does not connect to server
I am not able to make the connection with server. Obs: the browser supports websocket. I’m doing it this way var socket = new WebSocket('sw: localhost:8080'); Any suggestions?…
-
0
votes1
answer122
viewsWEBSOCKET and PHP data storage
I came across a question, I have a Websockets server written in PHP and need to store information that the user sends to the server, and that this data can be recovered only by the current session…
-
0
votes1
answer825
viewsHow to save request data in sessionStorage or Cookies?
I am developing a chat with Websocket and in it there is the list of users, when I click on a certain user starts a conversation only with that user, my question is the following: when clicking the…
-
0
votes1
answer75
viewsDon’t let connected connect, PHP
I’m working on a server Websockets that manages connections however I can not solve this small impasse, not for lack of understanding of the code but for not knowing how to do.. Look at that, The…
-
0
votes0
answers35
viewsHandle socket disconnection in clients
For example: I have 5 mobile devices listening to events A device lost connection The server triggers an event Four connected devices receive the event Disconnected device loses event and then…
-
0
votes0
answers318
viewsJSP instant messaging web application with Websockets
I would like to get or build an example according to what I leave in the following image: This one will need to use websockets. I tried to study the matter of websockets and run some examples only…
-
0
votes1
answer583
viewsHow to run a php socket
This script below is a php socket to receive data from a tk102 vehicular tracker. The problem is that I think it has to run in a specific folder on the server and I don’t know how to do it, and…
-
0
votes1
answer48
viewsHelp with PHP and Mongodb
Hello. I have an application using PHP and Mongodb and wanted to know if there is any way to keep the connection with mongoDB open. I have the following code that connects to Mongo: private static…
-
0
votes1
answer1395
viewsUse PHP Websocket Ratchet online
I’m trying to use the Ratchet to create WebSockets in PHP on a site I own. When I did the tests (localhost) everything worked perfectly, but when I try to put online, it does not run the connection.…
-
0
votes1
answer196
viewsSending of Websocket file
I need to create a chat channel for a system, this channel should allow to receive and send files(Docs, xls, png, etc...), I searched a lot on the internet and I did not find many examples, but I…
-
0
votes0
answers38
viewsError socket.io Node.js api changenow
I am developing a exchange system and need to receive in real time the status of transactions and exchange information, following the documentation changenow. but I always get the following error:…