Skip to content

admondtamang/global_websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global socket

Donot worry about hosting a socket. You can use this tool to emit socket event in a instant.

Send event

In postman, select POST method and use url: https://socket.admondtamang.com.np/api/emit, And in body, choose raw and select json: you should mention key and payload as below

{
    "key":"your_key",
    "payload":"{color:'red'}"
}

Example:

image

Note : key and payload is compulsory

Listen to events

In postman, click new and select socket.io, inser url: https://socket.admondtamang.com.np event_name: your_key and switch on the listen toggle

Example:

image