2017 © Pedro Peláez
 

library websocket

Websockets for PHP using Rx

image

rx/websocket

Websockets for PHP using Rx

  • Wednesday, April 18, 2018
  • by mbonneau
  • Repository
  • 6 Watchers
  • 25 Stars
  • 13,772 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 5 Forks
  • 4 Open issues
  • 14 Versions
  • 17 % Grown

The README.md

CI status, (*1)

Rx\Websocket is a PHP Websocket library., (*2)

Usage

Client

$client = new \Rx\Websocket\Client('ws://127.0.0.1:9191/');

$client->subscribe(
    function (\Rx\Websocket\MessageSubject $ms) {
        $ms->subscribe(
            function ($message) {
                echo $message . "\n";
            }
        );

        $sayHello = function () use ($ms) {
            $ms->onNext('Hello');
        };

        $sayHello();
        \EventLoop\addPeriodicTimer(5, $sayHello);
    },
    function ($error) {
        // connection errors here
    },
    function () {
        // stopped trying to connect here
    }
);

An Echo Server

$server = new \Rx\Websocket\Server('127.0.0.1:9191');

$server->subscribe(function (\Rx\Websocket\MessageSubject $cs) {
    $cs->subscribe($cs);
});

Server that dumps everything to the console

$server = new \Rx\Websocket\Server('127.0.0.1:9191');

$server->subscribe(function (\Rx\Websocket\MessageSubject $cs) {
    $cs->subscribe(function ($message) {
        echo $message;
    });
});

Installation

Using composer:, (*3)

composer require rx/websocket, (*4)

The Versions

18/04 2018

dev-master

9999999-dev

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

18/04 2018

2.1.3

2.1.3.0

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

15/12 2017

2.1.2

2.1.2.0

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

27/11 2017

2.1.1

2.1.1.0

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

31/10 2017

2.1.0

2.1.0.0

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

31/10 2017

dev-keepalive

dev-keepalive

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

12/09 2017

2.0.0

2.0.0.0

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

17/08 2017

1.0.2

1.0.2.0

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

28/03 2017

1.0.1

1.0.1.0

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

21/03 2017

1.0.0

1.0.0.0

Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

18/03 2017

0.10.0

0.10.0.0

Async Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

09/02 2016

0.9.2

0.9.2.0

Async Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

02/02 2016

0.9.1

0.9.1.0

Async Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php

27/01 2016

0.9.0

0.9.0.0

Async Websockets for PHP using Rx

  Sources   Download

MIT

The Requires

 

by Matt Bonneau
by David Dan

reactive rx websocket react rfc6455 websockets rxphp rx.php