File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,10 @@ func newWsHandler() *wsHandler {
102
102
func (handler * wsHandler ) handle (userID db.UserID , writer http.ResponseWriter , request * http.Request ) error {
103
103
defer handler .waitGroup .Done ()
104
104
105
- options := websocket.AcceptOptions {InsecureSkipVerify : true }
105
+ options := websocket.AcceptOptions {
106
+ InsecureSkipVerify : true ,
107
+ Subprotocols : []string {"flowey" },
108
+ }
106
109
conn , err := websocket .Accept (writer , request , & options )
107
110
if err != nil {
108
111
return err
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class WebSocketService {
13
13
}
14
14
15
15
connect ( url : URL ) {
16
- this . ws = new WebSocket ( url ) ;
16
+ this . ws = new WebSocket ( url , [ "flowey" ] ) ;
17
17
18
18
this . ws . onopen = ( ) => {
19
19
console . log ( "[Websocket] Connected" ) ;
You can’t perform that action at this time.
0 commit comments