feat: adding apiKey for authentication
This commit is contained in:
@@ -29,17 +29,17 @@ func main() {
|
||||
BasePort(8080).
|
||||
Path("/ws/test/data_1").
|
||||
UseTLS(false).
|
||||
ChannelSize(30).
|
||||
ChannelSize(1).
|
||||
Build(ctx)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// go func() {
|
||||
// for range wsClient.ReconnectChannel() {
|
||||
// fmt.Println("Reconnection Success")
|
||||
// }
|
||||
// }()
|
||||
go func() {
|
||||
for range wsClient.ReconnectChannel() {
|
||||
fmt.Println("Reconnection Success")
|
||||
}
|
||||
}()
|
||||
|
||||
dataChannel := wsClient.DataChannel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user