19 lines
336 B
Go
19 lines
336 B
Go
package server
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/gorilla/websocket"
|
|
)
|
|
|
|
var upgrader = websocket.Upgrader{
|
|
ReadBufferSize: 1024,
|
|
WriteBufferSize: 1024,
|
|
}
|
|
|
|
func (s *Server) wsHandler(w http.ResponseWriter, req *http.Request) {
|
|
log.Println("WebSocket")
|
|
//conn, err := upgrader.Upgrade(w, req, nil)
|
|
panic("not implemented")
|
|
}
|