You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, you have this as your client example code:
//...refs
using Alchemy;
using Alchemy.Classes;
static void Main(string[] args)
{
var aClient = new WebSocketClient("ws://alchemywebsockets.net:81/chat"){
OnReceive = OnReceive,
OnSend = OnSend,
OnConnect = OnConnected,
OnConnected = OnConnect,
OnDisconnect = OnDisconnect
});
aClient.Connect();
aClient.Send("Hey!"); // string or byte[]
aClient.Disconnect();
}
static void OnReceive(UserContext context)
{
Console.WriteLine("The server said : " + context.DataFrame.ToString());
}
//...etc
However, there is a problem with how you initialize the WebSocketClient. You should remove the closing parentheses after the closing bracket, to make it look like this.
Currently, you have this as your client example code:
However, there is a problem with how you initialize the WebSocketClient. You should remove the closing parentheses after the closing bracket, to make it look like this.
Not a big issue, thought I would just suggest it. Doesn't look like this repo gets updated much anyways.
The text was updated successfully, but these errors were encountered: