pub struct Message {
pub id: i64,
pub event_type: PushEventType,
}
Expand description
Struct encompasses a message we are trying to relay to a client from somehwere within dim. It holds an id and a event_type field.
Fields§
§id: i64
Field id, can hold anything and the client usually discriminates its meaning based on the event_type. For example within dim, sometimes it can be the library_id or media_id or sometimes its just -1 meaning ignore
event_type: PushEventType
Field holds the event type that gets relayed to the clients.