How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Photon Realtime Transport Protocol

The core Photon protocol - NOT a REST or JSON API. Clients connect through a Name Server to a Master Server (matchmaking/lobby) and then a Game Server (room gameplay), exchanging a proprietary binary message format (operation requests, operation responses, and events framed inside eNet-style commands) over UDP (reliable/unreliable), TCP, or WebSocket. WebSocket is a first-class documented transport - clients set ConnectionProtocol to WebSocket or WebSocketSecure and connect with ws:// on port 80 or wss:// on port 443 (9090/19090 for self-hosted/Cloud Master listeners) - used primarily for WebGL and browser-hosted game clients.

Photon Realtime Transport Protocol is one of 9 APIs that Photon Engine publishes on the APIs.io network, described by an AsyncAPI event-driven specification.

Tagged areas include Real-Time, Binary Protocol, UDP, TCP, and WebSocket. The published artifact set on APIs.io includes API documentation, an API reference, and an AsyncAPI specification.

This event API exposes 2 operations across 1 channel, and defines 6 schemas. It is described by AsyncAPI 2.6.0, at version 1.0.0.

The API connects through a single server, ns.exitgames.com:{port} (wss).

2 operations 1 channels 6 schemas

Metadata

The identity and technical contract details declared by the specification.

Specification
AsyncAPI 2.6.0
API Version
1.0.0
Base URL
wss://ns.exitgames.com:443
Resource Areas
1

Channels & Operations 2

Across 1 channel, the API surfaces 2 operations. Each is listed below with its action, channel, parameters, and response codes.

Channels 2
SUB
/photon/ws
Server sends an Operation Response or an Event.
receiveOperationResponseOrEvent body
PUB
/photon/ws
Client sends an Operation Request (e.g. Connect, JoinLobby, JoinRoom, CreateRoom, RaiseEvent, SetProperties).
sendOperationRequest body

Messages & Schemas 6

The contract defines 6 schemas that model the data carried by its messages. The most detailed are OperationResponseEnvelope (5 properties), EventEnvelope (3 properties), OperationEnvelope (3 properties). Each schema is shown below with its type and property counts.

OperationRequest
message
Client-to-server request identified by an operation code.
OperationResponse
message
Server-to-client reply to a specific operation code.
EventData
message
Server-pushed event identified by an event code.
OperationEnvelope
object
Structural summary of a binary Operation Request. Not a literal wire schema.
3 properties 1 required
OperationResponseEnvelope
object
Structural summary of a binary Operation Response. Not a literal wire schema.
5 properties 2 required
EventEnvelope
object
Structural summary of a binary Event. Not a literal wire schema.
3 properties 1 required

Specification

The full machine-readable AsyncAPI contract behind this narrative.

Source

photonengine-asyncapi.yml Raw ↑

Other APIs Photon Engine publishes across the network.

Photon PUN (Photon Unity Networking) API
Photon Fusion Networking API
Photon Quantum Deterministic Simulation API
Photon Voice API
Photon Chat API
Photon Bolt (Legacy, Deprecated)
Photon Engine Custom Authentication API
Photon Engine Room Lifecycle WebHooks API
Where this information came from

This is an independent, third-party profile of Photon Realtime Transport Protocol, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.