Skip to content

AndreiBu/php_websocket_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP WebSocket Client

Installation

composer require andreibu/php_websocket_client

Laravel 5

Setup

Add ServiceProvider to the providers array in config/app.php.


   'providers' => [
    ...
	AndreiBu\php_websocket_client\WSServiceProvider::class,
	
	],
	
   'aliases' => [
    ...
    
	'PHP_WS' => AndreiBu\php_websocket_client\Facades\PHP_WS::class,
	],
	

Configuration

    host
    port
    path
    

Usage

send
use PHP_WS;
PHP_WS::send(json_encode(array('type'=>'send_message_to','id'=>'1000001','msg'=>'laravel msg ')));

Contribute

https://github.com/AndreiBu/php_websocket_client/pulls

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages