blasphem/pkg/server/websocket.go

20 lines
337 B
Go
Raw Normal View History

2022-09-25 11:42:36 -04:00
package server
import (
2022-09-25 21:24:35 -04:00
"log"
2022-09-25 11:42:36 -04:00
"net/http"
"github.com/gorilla/websocket"
)
var upgrader = websocket.Upgrader{
2022-09-26 15:00:21 -04:00
ReadBufferSize: 1024,
2022-09-25 11:42:36 -04:00
WriteBufferSize: 1024,
}
func (s *Server) wsHandler(w http.ResponseWriter, req *http.Request) {
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)
panic("not implemented")
}