Skip to content

Commit ad093b7

Browse files
committed
feat: add online status int
1 parent 1740231 commit ad093b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

constant/constant.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ const (
151151
Registered = "registered"
152152
UnRegistered = "unregistered"
153153

154+
Online = 1
155+
Offline = 0
156+
154157
// MsgReceiveOpt.
155158
ReceiveMessage = 0
156159
NotReceiveMessage = 1
@@ -362,7 +365,7 @@ const CallbackCommand = "command"
362365

363366
const BatchNum = 100
364367

365-
//Subscribe to user constants
368+
// Subscribe to user constants
366369
const (
367370
SubscriberUser = 1
368371
Unsubscribe = 2

0 commit comments

Comments
 (0)