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