Open players private chat box

Game development with Board Game Arena Studio
Post Reply
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Open players private chat box

Post by disu »

Is there a way to open (and close), in my game page, the private chat box of single players? How?
I want to create custom buttons like the "balloon" button in private member page.
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: Open players private chat box

Post by Tisaac »

Yes, there is an undocumented way to do that, but the issue is that the conversation will then appear in the list of conversation of the player after the game, so that's not really a good idea. You will need to do it yourself by storing conversation in the DB.
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Re: Open players private chat box

Post by disu »

Tisaac wrote: 22 November 2020, 23:13 Yes, there is an undocumented way to do that, but the issue is that the conversation will then appear in the list of conversation of the player after the game, so that's not really a good idea. You will need to do it yourself by storing conversation in the DB.
Thank you Tisaac.
But is there some documentation on how to manage a simple chat in BGA? I don' think web socket is available for developers and I think is better to avoid polling...maybe some integration with existing BGA chats?
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: Open players private chat box

Post by Tisaac »

Well just use the notification system and ajax calls, and store the messages in your db. Not really complicated but surely would be nice if we could rely on BGA framework instead
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Re: Open players private chat box

Post by disu »

Any update on this?
Post Reply

Return to “Developers”