Skip to content

API Reference

Gil Maimon edited this page Mar 5, 2019 · 2 revisions

Websockets communication is made of Messages constructed and transmitted as Fragments. In TinyWebsockets, the WebsocketsMessage class is used to represent either a Frame or a complete Message received by the client.

See the docs here.

A Websocket is a 2-way communication channel between 2 endpoints. In order to initiate a connection, Client handpoints connect to Server endpoints.

WebsocketsClient lets you connect to servers listening for websockets connections and communicate with them.

See the docs here.

A Websocket is a 2-way communication channel between 2 endpoints. In order to initiate a connection, Client handpoints connect to Server endpoints.

WebsocketsServer lets you listen for clients and handle them according to your needs.

See the docs here.