How to add handshake Sec-WebSocket-Protocol headers

33 views
Skip to first unread message

TON DANG

unread,
Apr 6, 2022, 11:29:21 AM4/6/22
to WebSocket++
How can I add protocol header like bellows ?

// open the connection 
const ws = new WebSocket('wss://xxx', 'protocol')
Reply all
Reply to author
Forward
0 new messages