Questions tagged as 'websocket'

0
answers

Is it possible to use Websocket connections in Apache?

With the advent of Websockets in browsers, I was also interested in doing some implementations in some applications. Of course with the idea comes the initial doubts. One of the doubts that have arisen for me is about Apache. Traditionally...
asked by 29.06.2017 / 14:37
0
answers

Socket + SSL does not work PHP

Good morning, I have a system that uses a chat created by me and its communication by socket , all in php . The issue is that I asked hostgator to install SSL on the domain, it was installed and it works normally, bu...
asked by 16.01.2017 / 14:02
0
answers

Web sockets how to make a connection by selecting an IP

I'm doing a project that involves connecting to an ESP8266 via websockets , but since ip of ESP is not static, you need to manually connect to the IP . But in the code below when I put connection methods inside a function, the...
asked by 16.01.2017 / 23:18
1
answer

Simple script to know how many users are online on the site?

Friends, is there any 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 not chat or anything complex is not. Just k...
asked by 07.01.2018 / 02:23
2
answers

Real-Time How it works. Well I'm having problems with my tests Laravel 5.4

What do I need? I need when a user in the frontend sends a message to the system and the dashboard backend receives a real-time notification that the message has just been created. I'm doing this. In my controller in the store () method of the c...
asked by 12.10.2017 / 02:25
1
answer

Connections websockets with PHP

I'm using this class to work with WebSockets in PHP next to HTML5 and I have two doubts about the connections. How can I list all the active connections on that server? How can I disconnect a connection only, for example, I'm in conne...
asked by 22.12.2014 / 17:25
1
answer

Reconnect 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 && stateCallback.a...
asked by 20.03.2015 / 23:01
2
answers

How can I create a stream from a video that is on the server?

As the title itself already says, I need to create a live streaming of a video from the server, or from youtube or something like that, can anyone give me a hint how can I start? I searched a lot, and everywhere I looked I only found help / tuto...
asked by 29.07.2014 / 23:08
1
answer

How do I kill a websocket?

I'm having a hard time killing the websocket that runs within my application in java, I can not find answers anywhere. I need this, because I'm using it with a chrome extension to fill a website's forms, but when I refresh the page or close...
asked by 03.02.2018 / 02:38
1
answer

Uncaught 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 WebSocket('ws://127.0.0.1:1805/'); delete ws.URL; ws.onop...
asked by 19.03.2015 / 23:54