mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-21 15:38:40 +03:00
This commit is contained in:
parent
c98c88c00c
commit
67ee3fc0f2
@ -262,8 +262,7 @@ onConnInit (L.Logger logger) manager wsConn authMode connParamsM = do
|
||||
res <- runExceptT $ getUserInfo logger manager headers authMode
|
||||
case res of
|
||||
Left e ->
|
||||
liftIO $ WS.closeConn wsConn $
|
||||
BL.fromStrict $ TE.encodeUtf8 $ qeError e
|
||||
sendMsg wsConn $ SMConnErr $ ConnErrMsg $ qeError e
|
||||
Right userInfo -> do
|
||||
liftIO $ IORef.writeIORef (_wscUser $ WS.getData wsConn) $ Just userInfo
|
||||
sendMsg wsConn SMConnAck
|
||||
|
Loading…
Reference in New Issue
Block a user