I am quite new to websockets. I googled and grabbed some example code and none of them is working. All shows disconnected message despite of strictly following the tutorial rules.
I am testing from chrome, wamp and PHP 5.3.13 (php_socket is also active) on localhost, windows 7 ultimate(32bit).
What I want to ask is, do I need to configure my server to support websokets. If not what is the reason of not running it as intended?
Any kind of help is heartily welcomed!
thanks
I'd recommend you have search through StackOverflow as this question, and similar ones, have been asked quite a few times e.g.
Is native PHP support for Web Sockets available?
PHP server and websockets
Websockets & PHP
How Can a LAMP Guy Easily Implement WebSockets?
Related
I am trying to build a system using Socket.io and YARP. Yarp is functioning has a Reverse Proxy to all my Services.
When trying establish a connection to my socket.io service, through yarp, I am getting connection_error:
I noticed there are proper configurations used in other Reversed Proxy solutions that are well documented in Socket.io website:
https://socket.io/docs/v4/reverse-proxy/
However, I can't "translate" what they are doing to YARP. Does anyone know if this is possible?
Thanks in advance
I guess stackoverflow was my rubberduck this time...
I checked in postman the request that was being made through my Yarp Server and turns out it wasn't even hitting the correct path. For yarp to connect to a socket.io server you have to use this kind of path in your configuration file:
It seems that a sokcetio request uses it's own path, so you have to make your reverse proxy match the beggining "socket.io/"
In the past, websockets were not supported by all browsers and networks.
We were required to provide fallback solutions like HTTP Long Polling.
This situation appeared to change.
At least the browsers support looks great now: https://caniuse.com/#feat=websockets
I could not find any statistics about networks blocking websockets.
Do we have any data proving that there is still a justification for websocket fallback solutions?
Last year, I had an issue using Trello at work. While the page was initially shown, some changes were not reflecting on the page. I investigated using the Chrome debugger and found out that WebSockets connection was blocked (at least for that website).
After a few exchanges with IT, and some firewall black magic on their side, the issue was resolved and now Trello works fine.
So, in a few corporate environments, some WebSockets scenarios still need a fallback IMHO.
We have a game that is written with Adobe Flash and the server side is NodeJS and they communicate with socket.io.
We consider moving to Haxe, the problem is that when I try to google for Haxe and socket.io, I only find indications for it to operate together using haxe-js-kit.
Does anyone have any experience with Haxe and Socket.IO?
How is the performance of using haxe-js-kit for socket.io support?
Can I use haxe-js-kit both on browser and mobile and it will work properly?
Any information regarding the issue would be greatly appreciated!
Following twitter there are a fresh socket.io externs
For experience/recommendations go to haxe group
There are probably no pure Haxe port of Socket.io. If you intent on using it for OpenFL/Kha/etc. you'll want to port a Flash library to Haxe.
Websockets applications are not working on my network.
However, websites like http://www.websocket.org/echo.html and http://websocketstest.com/ tell me that everything is working.
When trying an application of my own, it appears the handshake goes through successfully, but after that none of the messages get across.
Any ideas what could be the reason for this? An explanation would be much appreciated.
I'm looking for a way to host an AJAX web client on my jabber server for people that can't install a real jabber client.
I tried JWchat but it hasn't been updated since 2004 and doesn't work anymore.
Yes there is:
Strophe.js http://strophe.im/strophejs/ is pretty much what most people use currently. You can find the code here: https://github.com/metajack/strophejs