Add TestHandleWS
This commit is contained in:
parent
f0857503d1
commit
df768f24da
2 changed files with 87 additions and 37 deletions
|
@ -112,9 +112,7 @@ func (c *Client) handleWS(ctx context.Context, rawurl string, q chan Event) erro
|
|||
q <- &NotificationEvent{Notification: ¬ification}
|
||||
}
|
||||
case "delete":
|
||||
if err == nil {
|
||||
q <- &DeleteEvent{ID: int64(s.Payload.(float64))}
|
||||
}
|
||||
q <- &DeleteEvent{ID: int64(s.Payload.(float64))}
|
||||
}
|
||||
if err != nil {
|
||||
q <- &ErrorEvent{err}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue