PushService Class

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Service class for pushing realtime events to connected clients. They can subscribe to these events with wvy.connection.default.on("event.weavy")

public static class PushService
Inheritance:
System.Object → PushService

Fields

EVENT_AUTHENTICATE
EVENT_BADGE
EVENT_COMMENT_INSERTED
EVENT_COMMENT_UPDATED
EVENT_CONTENT_INSERTED
EVENT_CONTENT_RESTORED
EVENT_CONTENT_TRASHED
EVENT_CONTENT_UPDATED
EVENT_CONVERSATION_DELETED
EVENT_CONVERSATION_DELIVERED
EVENT_CONVERSATION_PINNED
EVENT_CONVERSATION_READ
EVENT_LIKE
EVENT_MESSAGE_DELIVERED
EVENT_MESSAGE_INSERTED
EVENT_MESSAGE_UPDATED
EVENT_NOTIFICATION_INSERTED
EVENT_NOTIFICATION_UPDATED
EVENT_NOTIFICATIONS_READ
EVENT_POST_INSERTED
EVENT_POST_UPDATED
EVENT_PRESENCE
EVENT_STAR
EVENT_THEME_CHANGED
EVENT_TYPING Name of event that is sent when a user is typing in a conversation.
EVENT_UNLIKE
EVENT_UNSTAR

Methods

Push(string, object) Sends an event to all connected clients via the WebSocket-based realtime API.
PushToConnection(string, object, Guid) Sends an event to the specified connection via the WebSocket-based realtime API.
PushToConnections(string, object, IEnumerable) Sends an event to the specified connections via the WebSocket-based realtime API.
PushToUser(string, object, int) Sends an event to the specified user via the WebSocket-based realtime API.
PushToUsers(string, object, IEnumerable) Sends an event to the specified users via the WebSocket-based realtime API.