diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-29 12:16:20 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-29 12:16:20 (GMT) |
commit | 485e0b2bdcec3c82d6c0b4d7719808a0dfc9289c (patch) | |
tree | f3cf076abd2745f91e39c0c30228a77bbeda3bb4 /src/helsinki.at/rhimportd/ctrlWebSocket.go | |
parent | b84ca16ba73b56229b3c99dc2a9dd61508519c5e (diff) |
export session store to control interfaces
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlWebSocket.go')
-rw-r--r-- | src/helsinki.at/rhimportd/ctrlWebSocket.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlWebSocket.go b/src/helsinki.at/rhimportd/ctrlWebSocket.go index 09095dd..93134fd 100644 --- a/src/helsinki.at/rhimportd/ctrlWebSocket.go +++ b/src/helsinki.at/rhimportd/ctrlWebSocket.go @@ -83,7 +83,10 @@ func sendWebSocketErrorResponse(ws *websocket.Conn, code int, err_str string) { } } -func webSocketHandler(conf *rhimport.Config, rddb *rhimport.RdDbChan, trusted bool, w http.ResponseWriter, r *http.Request) { +func webSocketSessionHandler() { +} + +func webSocketHandler(conf *rhimport.Config, rddb *rhimport.RdDbChan, sessions *rhimport.SessionStoreChan, trusted bool, w http.ResponseWriter, r *http.Request) { rhdl.Printf("WebSocketHandler: request for '%s'", html.EscapeString(r.URL.Path)) ws, err := websocket.Upgrade(w, r, nil, 1024, 1024) @@ -111,7 +114,7 @@ func webSocketHandler(conf *rhimport.Config, rddb *rhimport.RdDbChan, trusted bo case "new": sendWebSocketErrorResponse(ws, http.StatusNotImplemented, "new session - not yet implemented") return - case "get": + case "reconnect": if reqdata.UserName == "" { sendWebSocketErrorResponse(ws, http.StatusBadRequest, "missing mandotary field LOGIN_NAME") return |