phpwebsocket is a server-side implementation of a WebSocket server using the PHP language. WebSocket is an API and a protocol for bi-directional, full-duplex communication that is closely associated with HTML5 and implemented in recent versions of most web browsers.
Questions tagged [phpwebsocket]
290 questions
2
votes
1 answer
How to listener on realtime firebase database for get data dynamically by backend laravel and websocket ,without use javascript
I need to get data from firebase realtime database dynamic with out refresh page so, how to do listener on realtime firebase database for get data dynamically by backend laravel and websocket, not from frontend as javascript.
public function…

Fedaa Elmasri
- 103
- 7
2
votes
0 answers
How can I scale web-socket-server across multiple servers using only PHP?
Friendly speaking, I haven’t used WebSockets before, but now I really need it. It is very likely that I don't understand the technology clearly. Please forgive me if my questions sound foolish.
One big question that bothers me: how can I scale…

Roman Andreev
- 444
- 3
- 6
- 18
2
votes
2 answers
Error: INVALID_STATE_ERR: DOM Exception 11 with php websockets
basically it is a rehash of this question:
Cannot connect using WebSockets, not changing readyState
Which was not really answered.
I see on the server side:
[nlubin@localhost www]$ php -q /var/www/html/realTime/server/startDaemon.php
2011-03-15…

Naftali
- 144,921
- 39
- 244
- 303
2
votes
0 answers
How to auto start services PHP Websocket on Ubuntu 14.0 when OS startup?
Below command is to start socket service.
nohup php -q server.php > my.log 2>&1 & echo $! > save_pid.txt
But the problem is when the OS shutdown and restart service socket will be stopped.
In this case, i want socket service auto start when the OS…

Udom
- 329
- 2
- 4
- 18
2
votes
0 answers
What is the meaning of reserved bits and opcode -1 in WebSockets
I am new to nodejs and getting an error in the browser console.
WebSocket connection to 'ws://site.com/socket.io/1/websocket/MO2ub3-qOMOx5ADBh86i' failed: One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1
what is the…

Prashantkumar K B
- 141
- 1
- 13
2
votes
2 answers
Using sec-websocket-protocol for authentication
I have a php websocket based application where the websocket is the core. Would it be a good idea to use sec-websocket-protocol for authentication.
This is my plan.
User logins using there credentials and I use php sessions to track the user…

user2288650
- 412
- 1
- 6
- 23
2
votes
0 answers
GOS WebSocket Bundle oAuth session sharing
I use symfony 3.3 and WebSocketBundle
for socket messaging and notification system.
Also was used FOS oAuth and FOS user bundle for auth part of application.
Question:
I want get user in Topic. I try to config session sharing...
All works fine..…

Deim Jons
- 21
- 1
2
votes
0 answers
Check if website is up / down using php websockets
I am trying to create a monitoring tool using php, which would check if a website is up / down in intervals of 5 minutes. I would like to use web-sockets for this, as I am new to the concept of web-sockets, I could only find communicating with…

sharath
- 521
- 1
- 4
- 18
2
votes
1 answer
PHP WebSocket: connection to MySQL server still on but not working
I am having a strange issue that's been bugging me for days: I am using a php websocket script for an intranet site to alert staff about certain things. it was a cheap and fairly easy to implement solution and it works fine. however, I am having to…

A. Richards
- 123
- 1
- 9
2
votes
1 answer
How to connect to a Ratchet php websocket from a client's console?
I have a PHP application running on Apache 2.4 and PHP 5.6.13 which uses https protocol. The internal IP of the server is 10.0.4.160.
I installed ratchet websocket to communicate between a client and the server via a websocket.
I followed the…

Junior
- 11,602
- 27
- 106
- 212
2
votes
1 answer
Show message to a group of users instead of all users using Websocket in php
I am developing a online video chat application in which a group of users can see and send message to the model room in which they are present. For this I am using websocket and php.
But when a user sending any mesages it is going to all users…

Pradeepta
- 458
- 3
- 19
2
votes
0 answers
How to do a Websocket handshake
I want to do handshake with server using websockets. But unnfortunately i always get errors like
WebSocket connection to 'ws://localhost:80/myserverfile.php' failed:
Error during WebSocket handshake: Unexpected response code: 200`
WebSocket…

Slim Shady
- 1,045
- 2
- 12
- 38
2
votes
0 answers
implementing websocket in old php html4 website
We are already having chat application in our old system which is html4. We need to convert chat application code into "web socket" code.
Does it require to convert all the application html4 code to html5.
Also we are uploading files in chat…

jit
- 1,616
- 3
- 21
- 49
2
votes
1 answer
Pass parameters in websockets php
I seen a example on html5 websockets with php at here.
I want to pass parameters in url. So I used like shown below in index.php
var wsUri = "ws://localhost:9000/demo/server.php?name=Jhon";
websocket = new…

Joshna Gunturu
- 161
- 1
- 2
- 13
2
votes
1 answer
Why do I get a connection issue when using ssl?
I am running a chat application on my website and everything was working fine when I was on HTTP but as soon as I got the SSL added and started using HTTPS, I get this errors for my websocket connection:
[blocked] The page at…

OGcode
- 31
- 6