Skip to content

Open-source Pub/Sub server for your apps and games, written using C#

Notifications You must be signed in to change notification settings

SneakBug8/Pub-sub-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opensource Pub/Sub hub

Free to use C# server with pub/sub and multichannel functionality.

Made using LiteNetLib library and NetPacketProcessor from it.

How to use

  • Install LiteNetLib in your project
  • Copy packets to your project
  • Connect Client to Server using LiteNetLib's tutorials
  • Create NetPacketProcessor, subscribe to ChannelAction's class with your main packet processor.

I suggest using json string in Content of ChannelAction, but you can replace it with byte[] for example.

Send SubscribePacket and UnsubscribePacket to subscribe/unsubscribe from channels by string name.

ChannelPackets are resent to every Client in the Channel.

Enjoy!

Feel free to ask me questions in Issues. Pull requests are welcomed.

About

Open-source Pub/Sub server for your apps and games, written using C#

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages