Merge pull request #2839 from withchao/v3.8-js-sdk-only

fix: ws write io timeout
v3.8-js-sdk-only
chao 2 weeks ago committed by GitHub
commit df03c76b85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -438,6 +438,9 @@ func (c *Client) handlerTextMessage(b []byte) error {
if err != nil {
return err
}
if err := c.conn.SetWriteDeadline(writeWait); err != nil {
return err
}
return c.conn.WriteMessage(MessageText, msgData)
default:
return fmt.Errorf("not support message type %s", msg.Type)

Loading…
Cancel
Save