feat: adding apiKey for authentication

This commit is contained in:
2025-11-21 16:24:33 +07:00
parent 49a30d3b44
commit 4fc0c438c8
7 changed files with 147 additions and 19 deletions

View File

@@ -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()