Skip to content

realcoloride/websocket-sharp-fix

 
 

Repository files navigation

WebsocketSharpFix

This is a fork of sta's WebsocketSharp that aims at implementing this PR.

I cannot believe this feature is something that has been missing for years.

Usage of patch

...
      using (var ws = new WebSocket ("ws://dragonsnest.far/Laputa")) {
            ws.OnMessage += (sender, e) =>
                          Console.WriteLine ("Laputa says: " + e.Data);
            ws.Headers["Cool-Header"] = "Hello world";
            ws.Connect ();
            ws.Send ("BALUS");
            Console.ReadKey (true);
      }
...

Installation

This should be pretty straightforward. Download/clone the project, build it, and use the websocket-sharp-fix.dll as Project reference or import via the Plugins (Unity).

(Use git clone https://github.com/realcoloride/websocket-sharp-fix to clone the project)

image

Make sure to build in Release

devenv_8Tv6qMxll8 devenv_2Ig8ihkx9P devenv_6VQ9ARFLBe

Good luck with your project!

About

A WebsocketSharp fork that implements setting headers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.8%
  • Other 0.2%