A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/napengam/phpWebSocketServer below:

GitHub - napengam/phpWebSocketServer: One server implemented in PHP to accept connections using ssl:// tcp:// ws:/

Server written in PHP to handle connections via websocksets wss:// or ws://
and normal sockets over ssl://

A detailed documentation is located here:

NO DEPENDENCIES

implemented by

WebSocketServer is based on the implementation in PHP by

The idea of *application classes' is taken from

See also https://tools.ietf.org/html/rfc6455

This server allows you to establish communication between web applications living in a browser
and enables backend scripts, in my case PHP, to communicate information back to web applications that have called the backend script to perform some action.

Clients receive a UUID from the server upon connection. If the web application triggers
backend scripts via AJAX it passes the UUID to the backend scripts. The script is now able to report
back to the web client by sending the UUID along with an opcode 'feedback' and other parameters to the server.
With the given UUID the server now knows to what web client to send the message. Loop closed !

See example in directory webClient

To start and use the server see the README in directory server

include

Files included by server and clients

Server

Implemention of a server in php and php script to start server.
Examples of classes to implement resources /php and /web

phpClient

Example of client written in PHP to connect and write to the server using resource /php

php2php

Example how to make one php script send messages to other php script via websocket

webClient

Example of web client to connect and communicate with the server using resource /web

websocketExtern

Conneting to external websocket servers to test client code


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4