Skip to content

Commit a52bdf0

Browse files
jeremyhewettmattqs
authored andcommitted
Added EVENT_ENGINE which is fired when a new engine socket is created. (#166)
1 parent 36d24ac commit a52bdf0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Src/SocketIoClientDotNet.net45/Client/Manager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public enum ReadyStateEnum
1818
CLOSED
1919
}
2020

21+
public static readonly string EVENT_ENGINE = "engine";
2122
public static readonly string EVENT_OPEN = "open";
2223
public static readonly string EVENT_CLOSE = "close";
2324
public static readonly string EVENT_PACKET = "packet";
@@ -200,6 +201,7 @@ private Manager Open(IOpenCallback fn)
200201
log.Info(string.Format("opening {0}", Uri));
201202
EngineSocket = new Engine(Uri, Opts);
202203
Quobject.EngineIoClientDotNet.Client.Socket socket = EngineSocket;
204+
Emit(EVENT_ENGINE, socket);
203205

204206
ReadyState = ReadyStateEnum.OPENING;
205207
OpeningSockets.Add(Socket(Uri.PathAndQuery));

0 commit comments

Comments
 (0)