安全网络套接字的协议是什么?

We've installed a Mattermost server and it works well.

We can only connect via http. Https gives an error.

The line of code that fails is

webSocketClient, err := model.NewWebSocketClient4("ws://mattermost.example.com", client.AuthToken)

make run
go run   *.go
Mattermost Bot Sample
Server detected and is running version 5.1.0
We failed to connect to the web socket
    Error Details:
        model.websocket_client.connect_fail.app_error
        model.websocket_client.connect_fail.app_error
        websocket: bad handshake
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x13e1e55]

We opened up the http port 8065 and when we connect to port 8065, without ssl, it works.

webSocketClient, err := model.NewWebSocketClient4("ws://mattermost.example.com:8065", client.AuthToken)

What is the protocol for a secure websocket?

查看全部
doulu1914
doulu1914
2018/07/25 01:01
  • nginx
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复