SOCKET.IO by HTTP://API.ILDAM.UZ
broadcaster: "socket.io",
host: 'https://api.ildam.uz:6001',
transports: ['websocket'],
auth: {
headers: {
Authorization: _TOKEN_
User-Agent-OS: [web, android, ios],
Device: ['web-application', client, executor, panel]
lang: [uz, ru]
}
}
Authorization: _TOKEN_
User-Agent-OS' : [web, android, ios]
lang: [uz, ru]
Content-Type: "application/json"
Device: ['web-application', client, executor, panel]
Device-Mode: [mobile, web-application]
User-Agent-Version : [app_version],
Private Channel name: EmployeeInfo.{employee_id}
listen: .employee-info
events: [logout, ]
message: ~
Private Channel name: executor-online
listen: .executor-switch
events: success {true, false}
Private Channel name: OrderChannel
listen: .order-created
events: [created, updated, change-status, change-executor]
Private Channel name: home-detail-channel
listen: .home-detail
details: [orders, executors, employees]
Private Channel name: ExecutorCoordsChannel
listen: .executor-coords
events: [ created, removed ]
Private Channel name: order-executor-track.{order_id}
listen: .order-executor
response: { order.track, executor.coords }
Join Channel name: support.{chat_id}
listen: .support-chat
data: []
event: [
new - create new message
read - readed message
close - close chat
]
whisper:
sending: this.$echo.whisper('typing', {
user: FIO
});
listen:
this.$echo.listenForWhisper('typing', (e) => {
this.typingUser = e.user;
if (this.typingTimer) clearTimeout(this.typingTimer)
this.typingTimer = setTimeout(()=>{
this.typingUser = false;
},2000)
})
Private Channel name: no_accepted_chats
listen: .accepted-chats
data: []
event: [
no-accepted - qabul qilinmadi
accepted - qabul qilindi
]
Join Channel name: order_chat.{order_id}
listen: .order-chat
data: []
event: [
new - create new message
read - readed message
]
whisper:
sending: this.$echo.whisper('typing', {
user: FIO
});
listen:
this.$echo.listenForWhisper('typing', (e) => {
this.typingUser = e.user;
if (this.typingTimer) clearTimeout(this.typingTimer)
this.typingTimer = setTimeout(()=>{
this.typingUser = false;
},2000)
})
Private Channel name: efir_channel.{region_id}
listen: .efir-event
events: [ created, removed, updated ]
Private Channel name: executor-order-channel.{id}
listen: .executor-order
events: [ new_order, remove_order, update_order ]
message: [
* remove_order bolganda modal show da message ni chiqarish kerak
* update_order [order malumotlar va statuslar almashuvi]
]
Private Channel name: executorInfo.{id}
listen: .executor-info
data: []
Private Channel name: notify.executors.{executor_id}
listen: .notify
data: []
Join Channel name: support.{chat_id}
listen: .support-chat
data: []
event: [
new - create new message
read - readed message
close - close chat
]
whisper:
sending: this.$echo.whisper('typing', {
user: FIO
});
listen:
this.$echo.listenForWhisper('typing', (e) => {
this.typingUser = e.user;
if (this.typingTimer) clearTimeout(this.typingTimer)
this.typingTimer = setTimeout(()=>{
this.typingUser = false;
},2000)
})
Join Channel name: order_chat.{order_id}
listen: .order-chat
data: []
event: [
new - create new message
read - readed message
]
whisper:
sending: this.$echo.whisper('typing', {
user: FIO
});
listen:
this.$echo.listenForWhisper('typing', (e) => {
this.typingUser = e.user;
if (this.typingTimer) clearTimeout(this.typingTimer)
this.typingTimer = setTimeout(()=>{
this.typingUser = false;
},2000)
})
Private Channel name: client_order_status.{client_id}
listen: .client-order-status
events: [
new-order : "new order event (panel)",
update-order : "order yangilanish event",
change-status : "order status o'zgarish event",
change-executor : "order executor o'zgarish event",
order-waiting : "efir 5 minut kutilgandagi event",
order-cancel : "efir dan 15 minut kutilgandagi event, order avtorazdacha orqali bekor qilinadi"
]
Private Channel name: current-order-executor.{executor_id}
listen: .order-executor
response: [lat, lng, heading, speed]
Join Channel name: support.{chat_id}
listen: .support-chat
data: []
event: [
new - create new message
read - readed message
close - close chat
]
whisper:
sending: this.$echo.whisper('typing', {
user: FIO
});
listen:
this.$echo.listenForWhisper('typing', (e) => {
this.typingUser = e.user;
if (this.typingTimer) clearTimeout(this.typingTimer)
this.typingTimer = setTimeout(()=>{
this.typingUser = false;
},2000)
})
Join Channel name: order_chat.{order_id}
listen: .order-chat
data: []
event: [
new - create new message
read - readed message
]
whisper:
sending: this.$echo.whisper('typing', {
user: FIO
});
listen:
this.$echo.listenForWhisper('typing', (e) => {
this.typingUser = e.user;
if (this.typingTimer) clearTimeout(this.typingTimer)
this.typingTimer = setTimeout(()=>{
this.typingUser = false;
},2000)
})