refactor: merge SendMessage()
into SendPermanentBroadCastMessage()
This commit is contained in:
parent
064a720436
commit
1ed866bfe5
2 changed files with 2 additions and 7 deletions
|
@ -19,9 +19,3 @@ type WebsocketClient struct {
|
|||
LastPong time.Time
|
||||
RealIP string
|
||||
}
|
||||
|
||||
// Sends a message to the websocket.
|
||||
func (c *WebsocketClient) SendMessage(messageType int, data []byte) error {
|
||||
c.Conn.SetWriteDeadline(time.Now().Add(TIMEOUT * time.Second))
|
||||
return c.Conn.WriteMessage(messageType, data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue