blasphem/pkg/server/websocket.go

21 lines
354 B
Go
Raw Permalink Normal View History

2022-09-25 11:42:36 -04:00
package server
import (
2022-09-30 14:37:40 -04:00
"errors"
2022-09-25 21:24:35 -04:00
"log"
2022-09-25 11:42:36 -04:00
"github.com/gorilla/websocket"
2022-09-30 14:37:40 -04:00
"github.com/labstack/echo/v4"
2022-09-25 11:42:36 -04:00
)
var upgrader = websocket.Upgrader{
2022-09-26 15:00:21 -04:00
ReadBufferSize: 1024,
2022-09-25 11:42:36 -04:00
WriteBufferSize: 1024,
}
2022-09-30 14:37:40 -04:00
func (s *Server) wsHandler(c echo.Context) error {
2022-09-25 21:24:35 -04:00
log.Println("WebSocket")
2022-09-25 11:42:36 -04:00
//conn, err := upgrader.Upgrade(w, req, nil)
2022-09-30 14:37:40 -04:00
return errors.New("not handled")
2022-09-25 11:42:36 -04:00
}