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 weavy.realtime.on("event.weavy")

public static class PushService
Inheritance:
System.Object → PushService

Fields

EVENT_BADGE
EVENT_BUBBLE_OPENED
EVENT_BUBBLE_REMOVED
EVENT_COMMENT_INSERTED
EVENT_CONVERSATION_READ
EVENT_LIKE
EVENT_MESSAGE_DELIVERED
EVENT_MESSAGE_INSERTED
EVENT_NOTIFICATION_INSERTED
EVENT_NOTIFICATION_UPDATED
EVENT_NOTIFICATIONS_ALL_READ
EVENT_POST_INSERTED
EVENT_PRESENCE
EVENT_REQUEST_AUTHENTICATION
EVENT_SPACE_INSERTED
EVENT_SPACE_TRASHED
EVENT_STAR
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, Int32) 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.