Chat server (chat.drivers.uz)
URL: chat.drivers.uz
Protocol: socket.io
Port: 443 (default)
SSL: enabled
Auth timeout: 60 seconds
Clients must provide authentication credentials before proceeding to receive and emit data in communication channels.
key
type
length
required
token
string
32
yes
{
"token" : " 446f8da7c5904653bec11557c3416f6f"
}
key
type
success
failure
status
string
ok
fail
Success response
Failure response
{
"status" : " fail" ,
"data" : " token not given"
}
Failure response
{
"status" : " fail" ,
"data" : " invalid token"
}
Clients can listen and emit to messaging channel any time. Bidirectional communication supported.
key
type
length
required
stamp_id
text
not set
no
topic_id
int
not set
yes
body
text
not set
yes
reply_to
int
not set
no
attrs
json
not set
no
has_media
bool
not set
no
{
"stamp_id" : " 123ABC" ,
"topic_id" : 1 ,
"body" : " foobar" ,
"reply_to" : null ,
"attrs" : null ,
"has_media" : false
}
key
type
success
failure
event_type
text
sent
fail
data
json
json
-
{
"event_type" : " sent" ,
"data" : {
"id" : 5357 ,
"stamp_id" : " 6D0F4Z15" ,
"topic_id" : 49 ,
"owner" : {
"id" : 15 ,
"username" : " Sardor"
},
"reply_to" : null ,
"body" : " foobar" ,
"attrs" : null ,
"sent_at" : 1455667133264 ,
"has_media" : false
}
}
Clients must inform typing event with their id and topic id.
key
type
length
required
user_id
int
not set
yes
topic_id
int
not set
yes
{
"user_id" : 1 ,
"topic_id" : 12
}
key
type
success
failure
staus
text
-
fail
data
json
-
json
key
type
length
always
user_id
int
not set
yes
topic_id
int
not set
yes
{
"user_id" : 1 ,
"topic_id" : 12
}