This commit is contained in:
2015-08-10 16:45:39 +03:00
parent 43c5be9455
commit 0f7f97fe81
7 changed files with 31 additions and 32 deletions

View File

@@ -29,7 +29,7 @@ class JsConnection extends BaseConnection {
}
private function buildSocket(host:String, port:Int):WebSocket {
return untyped __js__("self.socket = new WebSocket('ws://'+host+':'+port); ");
return untyped __js__("new WebSocket('ws://'+host+':'+port);");
}
override public function connect():Void {