Updating packages

This commit is contained in:
2023-09-18 21:01:38 -05:00
parent c89756630f
commit 8f0db70487
10 changed files with 22 additions and 23 deletions

View File

@ -3,9 +3,9 @@ package websocket
import (
"crypto/tls"
"encoding/json"
"gitea.watsonlabs.net/watsonb8/fayec/message"
"gitea.watsonlabs.net/watsonb8/fayec/transport"
"github.com/gorilla/websocket"
"github.com/thesyncim/fayec/message"
"github.com/thesyncim/fayec/transport"
"log"
"net"
"sync"
@ -134,8 +134,8 @@ func (w *Websocket) Handshake(msg *message.Message) (resp *message.Message, err
return resp, nil
}
//Init is called after a client has discovered the servers capabilities with a handshake exchange,
//a connection is established by sending a message to the /meta/connect channel
// Init is called after a client has discovered the servers capabilities with a handshake exchange,
// a connection is established by sending a message to the /meta/connect channel
func (w *Websocket) Connect(msg *message.Message) error {
go func() {
log.Fatal(w.readWorker())