mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
Make a WS class to eliminate globals
This commit is contained in:
parent
f3254e3402
commit
bd5887a876
5 changed files with 90 additions and 85 deletions
|
@ -103,7 +103,7 @@ class ProxyPair
|
|||
if peer_ip?
|
||||
params.push(["client_ip", peer_ip])
|
||||
|
||||
@relay = makeWebsocket @relayAddr, params
|
||||
@relay = WS.makeWebsocket @relayAddr, params
|
||||
@relay.label = 'websocket-relay'
|
||||
@relay.onopen = =>
|
||||
if @timer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue