server-sdk-go icon indicating copy to clipboard operation
server-sdk-go copied to clipboard

An exception occurred while using the go SDK "ConnectToRoom" API

Open dht-hedaihua opened this issue 3 years ago • 1 comments

Describe the bug When I use the connecttoroom view of the example method of livekit go SDK to connect to a room I have entered through the web, the server can monitor my connection, but soon it automatically turns off the connection. The specific process is as follows: Premise: I have successfully started the livekit service in the docker of my Mac. As follows: image Then I successfully connected to the livekit service I had started locally through the livekit client JS end example. As follows:

image image

Now: I call the sample code in livekit go SDK in the local go project. I try to connect to the room just created on the web side. The code is as follows:

image

After execution, the output information of the server and connection end is as follows: Print information at the service startup terminal: image

The upper part shows that the client connection is automatically executed in a very short time from closing the connection. I didn't do anything.

The log information printed on the connection console is: image

Additional Comments: I changed the protocol of the host in the connection section parameters to WSS, HTTPS and HTTP respectively, and the connection address to localhost and my local IP address respectively. The server will respond only when it is WS: / / localhost: 7880. In other cases, the connection timeout or TLS handshake is reported.

Server

  • Version: [0.15.7]
  • Environment: [local docker MacOS]

Client

dht-hedaihua avatar May 03 '22 12:05 dht-hedaihua

@HDHChris it might be related to this issue. In any case, since this is connectivity of the Go SDK, moving it to that repo.

davidzhao avatar May 03 '22 22:05 davidzhao