VP_EVENT_UNIVERSE_DISCONNECT
Event set and handler snippet
vp_event_set(instance, VP_EVENT_UNIVERSE_DISCONNECT, event_universe_disconnect);
void event_universe_disconnect(VPInstance instance) { }
Fired when the SDK is unexpectedly disconnected from the universe server.
Attributes
Attribute | Usage | |
---|---|---|
VP_DISCONNECT_ERROR_CODE | Operating system's disconnect error code |
Behavior
- Will not fire if the client intentionally disconnects using
vp_destroy()
- Because the SDK maintains separate connections to the universe and world server, a
VP_EVENT_WORLD_DISCONNECT
will not fire as a result of this event
Examples
- This event has no usage examples; please add at least one to this page