fix: need to pass by ref

This commit is contained in:
Derrick Hammer 2024-01-07 06:49:27 -05:00
parent 0028483817
commit 8b2756caad
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ var (
func init() { func init() {
transports = sync.Map{} transports = sync.Map{}
RegisterTransport("ws", WebSocketPeer{}) RegisterTransport("ws", &WebSocketPeer{})
RegisterTransport("wss", WebSocketPeer{}) RegisterTransport("wss", &WebSocketPeer{})
} }
func RegisterTransport(peerType string, factory interface{}) { func RegisterTransport(peerType string, factory interface{}) {
if _, ok := factory.(PeerFactory); !ok { if _, ok := factory.(PeerFactory); !ok {