ወደ ዋናው ይዘት ዝለል

የቅጽበታዊ ክስተቶች

የSocket.IO ገጽታ ሙሉ ካርታ: ክፍሎች፣ አገልጋዩ የሚልካቸው ክስተቶች እና ደንበኛው የሚልካቸው። ከአገልጋዩ ምንጮች የተወሰደ ነው።

TypeScript
// Console: a JWT, in auth.token or the Authorization header
const socket = io('https://eu.ws.prodantix.com', {
  auth: { token: accessToken },
  transports: ['websocket'],
});

// SDK messenger panel: project key + conversation token, one room only
const panel = io('https://eu.ws.prodantix.com', {
  auth: { projectKey, conversationToken },
  transports: ['websocket'],
});

Rooms

An unauthenticated connection is disconnected immediately, with no error frame. A messenger panel is joined to exactly one conversation room and can never subscribe to a project room: a project frame stream is every thread in the project.

RoomJoinedWho
tenant:<tenantId>Automatically at connectConsole connections
project:<projectId>subscribe, authorized against the tenantConsole connections
report:<reportId>subscribe with a reportId, authorized against the tenantConsole connections
conversation:<conversationId>At handshake, via project key + conversation tokenSDK messenger panels, this one room only

Server events

EventRoomFired whenPayload
flagChangeprojectA flag is created, edited, archived or unarchivedprojectId, key, archived
event.ingestedprojectThe ingest pipeline accepts a batchevents (the rendered batch)
workflow.runprojectA workflow run advancesrunId, status, currentNodeId
conversation.turnproject and conversationA conversation gains a turnconversationId, turn
reportCommentChangereportA comment thread on the report starts, gains a reply, an edit, a deletion or a reaction, or is resolved or reopenedprojectId, reportId, threadId, change
subscribedthe socketA subscribe was acceptedprojectId or reportId
unsubscribedthe socketAn unsubscribe completedprojectId or reportId
errorthe socketA subscribe was malformed, forbidden or hit a faultmessage, and the projectId or reportId when relevant

Client events

EventPayloadEffect
subscribeprojectId or reportId, never bothJoins the project room, or the report room, after a tenant-ownership check
unsubscribeprojectId or reportId, never bothLeaves that room