Multi protocol dynamically on WS

#1

Hi Team,

I want to develop a multi player real time game,
I am new to autobahn and new to Websocket,
I saw the echo example, but I want to create new game dynamically from client, and other clients can join the game, same way multiple games can run simultaniously.
Can I get the example code like that, but multiproto example showed a static Protocol has defined.

Thanks,
Loganathan

0 Likes

#2

Hi Loganathan!

I’d need more data in order to understand exactly what you want to do. Some of this would be: Do you use plain WebSockets, or WAMP? What do you mean by “create new game dynamically from client”? Once we have this, I’m happy to help.

If you’re using WAMP, I suggest looking at the examples and demos to try and find something which is similar in the underlying structure to what you want to do - see https://github.com/crossbario/crossbarexamples - maybe there’s something there which can get you started. The votes demo (e.g the browser-only version https://github.com/crossbario/crossbarexamples/tree/master/demos/votes/browser) is a good place to start in understanding the basics of WAMP, since it has both PubSub and RPC.

Regards,

Alex

···

Am Dienstag, 30. Juni 2015 11:34:23 UTC+2 schrieb Loganathan B:

Hi Team,

I want to develop a multi player real time game,
I am new to autobahn and new to Websocket,
I saw the echo example, but I want to create new game dynamically from client, and other clients can join the game, same way multiple games can run simultaniously.
Can I get the example code like that, but multiproto example showed a static Protocol has defined.

Thanks,
Loganathan

0 Likes