overtrue / Websocket
A PHP implementation of WebSocket.
Stars: ✭ 54
Projects that are alternatives of or similar to Websocket
Autobahn Testsuite
Autobahn WebSocket protocol testsuite
Stars: ✭ 603 (+1016.67%)
Mutual labels: websocket, websocket-server, websocket-client
Php Wss
Web-socket server/client with multi-process and parse templates support on server and send/receive options on client
Stars: ✭ 117 (+116.67%)
Mutual labels: websocket, websocket-server, websocket-client
Deno Websocket
🦕 A simple WebSocket library like ws of node.js library for deno
Stars: ✭ 74 (+37.04%)
Mutual labels: websocket, websocket-server, websocket-client
Sketchpad
Sketchpad is fully customisable collaborative whiteboard plugin written in pure JavaScript.
Stars: ✭ 85 (+57.41%)
Mutual labels: websocket, websocket-server, websocket-client
Oatpp Websocket
oatpp-websocket submodule.
Stars: ✭ 26 (-51.85%)
Mutual labels: websocket, websocket-server, websocket-client
Websocket
The Hoa\Websocket library.
Stars: ✭ 421 (+679.63%)
Mutual labels: websocket, websocket-server, websocket-client
Arduinowebsockets
arduinoWebSockets
Stars: ✭ 1,265 (+2242.59%)
Mutual labels: websocket, websocket-server, websocket-client
Jiny
Lightweight, modern, simple JVM web framework for rapid development in the API era
Stars: ✭ 40 (-25.93%)
Mutual labels: websocket, websocket-server, websocket-client
Beast
HTTP and WebSocket built on Boost.Asio in C++11
Stars: ✭ 3,241 (+5901.85%)
Mutual labels: websocket, websocket-server, websocket-client
Libhv
🔥 比libevent、libuv更易用的国产网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket client/server.
Stars: ✭ 3,355 (+6112.96%)
Mutual labels: websocket, websocket-server, websocket-client
Embedded Jetty Websocket Examples
Embedded Jetty WebSocket Examples
Stars: ✭ 159 (+194.44%)
Mutual labels: websocket, websocket-server, websocket-client
Websockets
Library for building WebSocket servers and clients in Python
Stars: ✭ 3,724 (+6796.3%)
Mutual labels: websocket, websocket-server, websocket-client
Ws
Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js
Stars: ✭ 17,419 (+32157.41%)
Mutual labels: websocket, websocket-server, websocket-client
Awesome Websockets
A curated list of Websocket libraries and resources.
Stars: ✭ 850 (+1474.07%)
Mutual labels: websocket, websocket-server, websocket-client
Websocket As Promised
A Promise-based API for WebSockets
Stars: ✭ 485 (+798.15%)
Mutual labels: websocket, websocket-client
Cppserver
Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
Stars: ✭ 528 (+877.78%)
Mutual labels: websocket, websocket-server
Turbo Ws
💨 Blazing fast low-level WebSocket server
Stars: ✭ 647 (+1098.15%)
Mutual labels: websocket, websocket-server
Gun
HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
Stars: ✭ 710 (+1214.81%)
Mutual labels: websocket, websocket-client
Cowboy
Small, fast, modern HTTP server for Erlang/OTP.
Stars: ✭ 6,533 (+11998.15%)
Mutual labels: websocket, websocket-server
WebSocket
A PHP implementation of WebSocket.
Installing
$ composer require overtrue/websocket -vvv
Usage
Server
use Overtrue\WebSocket\Server;
$options = [
// 'port' => 8000,
// 'timeout' => 0,
// ...
];
$server = new Server($options);
$server->accept();
// receive
$message = $server->reveive();
// send
$server->send('Hello overtrue.');
Client
use Overtrue\WebSocket\Client;
$client = new Client('ws://127.0.0.1:8000');
// send
$client->send('Hello overtrue.');
// receive
$message = $client->reveive();
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].