Skip to content

Commit 1d686c7

Browse files
authored
Merge pull request #34 from jwardyn/upm
Fixes duplicate constructors in upm branch
2 parents cc18223 + 0a6b3d5 commit 1d686c7

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

WebSocket/WebSocket.cs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -268,34 +268,6 @@ public WebSocket (string url, List<string> subprotocols, Dictionary<string, stri
268268
this.instanceId = instanceId;
269269
}
270270

271-
public WebSocket (string url, string subprotocol, Dictionary<string, string> headers = null) {
272-
if (!WebSocketFactory.isInitialized) {
273-
WebSocketFactory.Initialize ();
274-
}
275-
276-
int instanceId = WebSocketFactory.WebSocketAllocate (url);
277-
WebSocketFactory.instances.Add (instanceId, this);
278-
279-
WebSocketFactory.WebSocketAddSubProtocol(instanceId, subprotocol);
280-
281-
this.instanceId = instanceId;
282-
}
283-
284-
public WebSocket (string url, List<string> subprotocols, Dictionary<string, string> headers = null) {
285-
if (!WebSocketFactory.isInitialized) {
286-
WebSocketFactory.Initialize ();
287-
}
288-
289-
int instanceId = WebSocketFactory.WebSocketAllocate (url);
290-
WebSocketFactory.instances.Add (instanceId, this);
291-
292-
foreach (string subprotocol in subprotocols) {
293-
WebSocketFactory.WebSocketAddSubProtocol(instanceId, subprotocol);
294-
}
295-
296-
this.instanceId = instanceId;
297-
}
298-
299271
~WebSocket () {
300272
WebSocketFactory.HandleInstanceDestroy (this.instanceId);
301273
}

0 commit comments

Comments
 (0)