|
|
@ -22,7 +22,7 @@ wSrvName(Port) -> |
|
|
|
|
|
|
|
openSrv(Port, WsOpts) -> |
|
|
|
T1WsOpts = lists:keystore(conMod, 1, WsOpts, {conMod, wsHttp}), |
|
|
|
WsMod = ?wsGLV(wsMod, WsOpts, wsEgHer), |
|
|
|
WsMod = ?wsGLV(wsMod, WsOpts, wsTPHer), |
|
|
|
T2WsOpts = lists:keystore(conArgs, 1, T1WsOpts, {conArgs, WsMod}), |
|
|
|
TcpOpts = ?wsGLV(tcpOpts, T2WsOpts, []), |
|
|
|
NewTcpOpts = wsUtil:mergeOpts(?DefWsOpts, TcpOpts), |
|
|
@ -39,7 +39,7 @@ openSrv(Port, WsOpts) -> |
|
|
|
|
|
|
|
openSrv(WSrvName, Port, WsOpts) -> |
|
|
|
T1WsOpts = lists:keystore(conMod, 1, WsOpts, {conMod, wsHttp}), |
|
|
|
WsMod = ?wsGLV(wsMod, WsOpts, wsEgHer), |
|
|
|
WsMod = ?wsGLV(wsMod, WsOpts, wsTPHer), |
|
|
|
T2WsOpts = lists:keystore(conArgs, 1, T1WsOpts, {conArgs, WsMod}), |
|
|
|
TcpOpts = ?wsGLV(tcpOpts, T2WsOpts, []), |
|
|
|
NewTcpOpts = wsUtil:mergeOpts(?DefWsOpts, TcpOpts), |
|
|
|