20 lines
354 B
Go
20 lines
354 B
Go
package server
|
|
|
|
import (
|
|
"errors"
|
|
"log"
|
|
|
|
"github.com/gorilla/websocket"
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
var upgrader = websocket.Upgrader{
|
|
ReadBufferSize: 1024,
|
|
WriteBufferSize: 1024,
|
|
}
|
|
|
|
func (s *Server) wsHandler(c echo.Context) error {
|
|
log.Println("WebSocket")
|
|
//conn, err := upgrader.Upgrade(w, req, nil)
|
|
return errors.New("not handled")
|
|
}
|