Socket connection problem on HTML5 target

hello, I am new to openfl and started port my multiplayer game from flash to html5
can’t manage to work socket connection!
it works on flashplayer target but not html5

here my simple code

import openfl.system.Security;
import openfl.utils.Timer;

class ServerClient {
	private var socket:Socket = new Socket();
	private var socketData:String;

	public function new() {
		socket.addEventListener(Event.CONNECT, onConnect);
		trace("Connecting to server." + ' ' + 2226);
		socket.connect("", 2226);


	function onConnect(e:Event):Void {


am I missing something?

Do you get errors?

I forget what permissions are required in order to use WebSockets

yes it goes to timed out

Socket.hx:130 WebSocket connection to 'ws://' failed: WebSocket opening handshake timed out
Boot.hx:58 ServerConnector.hx:58: IO Error: [Event type="ioError" bubbles=false cancelable=false]
Boot.hx:58 ServerConnector.hx:52: on close

I am using Chrome to debug, what permissions do I need?

Are you sure the server at ‘ws://’ is actually a websocket server ?
use this to test:

We checked server and seemed it didn’t responded for Websocket, fixed and works as expected
thanks all for help.