So I'm trying to send a packet of information from a server to a socket and vice versa. I only see a way to send strings. what I NEED to do is send a variable with a specific header that defines what type of data that variable is. The data could be anything between a chat_Message to a player_move event.
I would also like to send a list of information at once. This list would include 5 variables. 4 strings and an int. and I need to give that a header as well.
The server is in C#.net SuperWebSockets, and the client is in javascript on a web server.
Examples of code would also be nice, thanks in advnaced!