# README
mersal مرسال
Instant messaging server, easy to use as a server or as a library
how to use ?
create a websocket on browser and send message as json :
to subscribe in a topic (channel) send :
{
"event":"subscribe",
"channel":"my-channel-id"
}
event must be : subscribe
, unsubscribe
, message
,
Later we will add events: reseive
, andseen
,
We will also work to achieve quality service qos
later .
to send message to channel/topic:
{
"event" : "message",
"channel" : "my-channel-123",
"data" : "hi frends"
}
then all client subscribe with "my-channel-123" will be receive "hi frinds" message
# Packages
No description provided by the author
# Functions
New creates a new cache.
No description provided by the author
note: income data must be json as `{"event":"","msg":""}` event must be subscribe, unsubscriber, close or msg.
No description provided by the author
No description provided by the author