You need to define two event types; one for events you expect to send to the remote server, and one for events you expect to receive. Typically this will be an `enum` type.
You need to define two event types; one for events you expect to send to the remote server, and one for events you expect to receive. Typically this will be an `enum` type.
These types need to implement `ToSocketMessage` and `FromSocketMessage` respectively.
These types need to implement `ToSocketMessage` and `FromSocketMessage` respectively.
`remote_events` expects every received event to be mapped to a type within your project; this might require a custom `None` type added to your event `enum` (see below). A
`remote_events` expects every received event to be mapped to a type within your project; this might require a custom `None` type added to your event `enum` (see below).
client will only be created when you emit a lifecycle event containing the URL of the remote host to connect to. The `Desktop` target can only handle insecure websocket
connections (`ws://`, not `wss://`).
A client will only be created when you emit a `SocketControlEvent::Connect(String)` event containing the URL of the remote host to connect to.
The `Desktop` target can only handle insecure websocket connections (`ws://`, not `wss://`).