8000 GitHub - katallaxie/fiber-ws-relay: Relay middleware between WebSocket and TCP
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

katallaxie/fiber-ws-relay

Repository files navigation

🎫 Websocket-TCP Relay

Test & Build Go Report Card License: MIT Taylor Swift

Websocket-TCP Relay is a simple relay that allows to connect to a TCP server via a websocket connection. It is built with Fiber.

Usage

This creates a middleware relay that connects to a TCP server on localhost:4222 and relays the data between the websocket and the TCP server.

app := fiber.New()

app.Use(logger.New())
app.Get("/ws", relay.New(relay.Config{}, "localhost:4222"))

if err := app.Listen(":8080"); err != nil {
	return err
}

License

MIT

About

Relay middleware between WebSocket and TCP

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0