Skip to content
On this page

Anonymous websocket API

EndpointMethodDescription
anonymousConnectionwebsocketEventAnonymous connection event
anonymousAuthorizedwebsocketEventAnonymous authorized event

Anonymous connection event

Event: anonymousConnection

Description: Event is automatically emitted for anonymous socket connection

Data:

{
    "data": {
        "isAnonymous": bool
        "network": { network structure }
    }
    "error": { "status": bool, "code": int, "message": string }
}

Anonymous authorized event

Event: anonymousAuthorized

Description: Event is emitted when anonymous socket id is present during user authorization. This means that client should be reconnected with new session id (new socket connection required).

Data:

{
    "data": {
        "sessionId": string
    }
    "error": { "status": bool, "code": int, "message": string }
}

Models


Network

{
    "id": string
    "created": timestamp
    "updated": timestamp
    "fullName": string
    "type": string  // Public/Matchmaking/BusinessSocial/NetworkConference/Humanity
    "thumbnail": string  // resourceId
    "parentNetworkId": string  // if not empty, current network is a sub network
}