Questions tagged [ratchet]

Ratchet is a PHP WebSockets library. Ratchet provides developers with tools to create real time, bi-directional applications between clients and servers over WebSockets. This is not your Grandfather's Internet.

Ratchet is a PHP WebSockets library. (Github Repository)

A PHP 5.3 library for asynchronously serving WebSockets. Build up your application through simple interfaces and re-use your application without changing any of its code just by combining different components.

  • Supports the RFC6455, HyBi-10+, and Hixie76 protocol versions (at the same time).
  • Tested on Chrome 13+, Firefox 6+, Safari 5+, iOS 4.2+, IE 8+
  • Ratchet passes the Autobahn Testsuite (non-binary messages)
642 questions
45
votes
9 answers

php ratchet websocket SSL connect?

I have a ratchet chat server file use Ratchet\Server\IoServer; use Ratchet\WebSocket\WsServer; use MyAppChat\Chat; require dirname(__DIR__) . '/vendor/autoload.php'; $server = IoServer::factory( new WsServer( new Chat() ) ,…
Viet Nguyen
  • 2,285
  • 2
  • 26
  • 43
35
votes
1 answer

PHP Websocket authenticate user in a test (pass session cookie)

I am trying to test a scenario, that on the one hand, anonymous users should immediately get a disconnect from a Websocket connection and on the other hand, authenticated users should stay in the websocket connection. The first case is easy testable…
user3746259
  • 1,491
  • 2
  • 23
  • 46
32
votes
5 answers

Failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I try to connect with socket to my server. My server is running server socket with Rachet on port 8080. I try to run this code: