-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor action code strings into an enum-like object
- Loading branch information
1 parent
2532faa
commit e91488d
Showing
3 changed files
with
88 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
exports.Action = { | ||
InitLegacy: 'init', | ||
Handshake: 'hs', | ||
QueryFetch: 'qf', | ||
QuerySubscribe: 'qs', | ||
QueryUnsubscribe: 'qu', | ||
QueryReply: 'q', | ||
BulkFetch: 'bf', | ||
BulkSubscribe: 'bs', | ||
BulkUnsubscribe: 'bu', | ||
Fetch: 'f', | ||
Subscribe: 's', | ||
Unsubscribe: 'u', | ||
Op: 'op', | ||
SnapshotFetch: 'nf', | ||
SnapshotFetchByTimestamp: 'nt', | ||
Presence: 'p', | ||
PresenceSubscribe: 'ps', | ||
PresenceUnsubscribe: 'pu', | ||
PresenceRequest: 'pr' | ||
}; |