Prebuilt UI for peer-to-peer chat? - chat

I need to add a peer-to-peer live chat function to my website. I'd like to use a prebuilt UI that can integrate into my current website. Does anyone know how to do this?

If you are familiar with React, you can use https://github.com/chatscope/chat-ui-kit-react for UI together with https://github.com/chatscope/use-chat for connecting UI with your P2P communication layer.
It's not exactly prebuilt UI, but based on documentation you can make the chat UI very fast.
Disclaimer: I'm the author of both tools.

Related

WebChat via WebRTC

We are currently in the middle of a large infrastructure rebuild. We are replacing everything from the CRM to the ERP to the CTI.
We have decided to use WebRTC for the CTI. After working with WebRTC for a bit I really see the promise in this technology and started to think that maybe this is the way we want to go for our Webchat as well.
The premise behind this is to be able to add Voice / Video and Screensharing to our chat feature at some point in time.
Since WebRTC is not supported in Safari IE Edge Etc. I am thinking we may be just slightly ahead of ourselves in using WebRTC for text chat.
One thought would be to build it all out as WebRTC determine if the browser allows as default back to XMPP etc.
I have been researching this on my own and have found some options out there like talky.io but in this rebuild we are focusing on not having any third parties involved in our applications (We have had a couple go bye bye with no warning).
Is there a framework / library / open source project out there that tackles part or all of this task?
Is this task as daunting as I think it is going to be or am I overreacting?
Am I crazy, should be locked in a padded room and use an existing chat service?
talky is built ontop of https://github.com/legastero/stanza.io which includes a jingle/webrtc module
Take a look at the Jitsi project (specifically Jitsi Meet). A public version is running at meet.jit.si that you can try out; it uses webrtc for the voice / video, and Jingle / XMPP for the signaling. It is all open source, so you can be sure you won't lose access if the company goes under or something else bad were to happen. The Jitsi team runs it using the Prosody XMPP server; they make a good combination.

Adobe Flash iPhone Game Development like Words/Hanging with Friends possible?

Adobe Flash CS 5 and 5.5 offers the ability to create applications for the iPhone. Would it be possible to create a multiplayer turn style game like the iPhone game Words/Hanging with Friends/Chess with friends?
If so anyone have any good places to start with. My only problem would be making multiplayer and turn style work. I am only curious as I am not up to coding par enough to do this with Objective C.
Thanks all!
Yes it would be possible. You could leverage a service like the Flash Collaboration Service (also known as LiveCycle Collaboration Service) to manage the state between games:
http://www.adobe.com/devnet/flashplatform/services/collaboration.html
You would not be able to leverage GameCenter integration without a Native Extension.

How to implement chat using bonjour service?

I have one application in which all available clients are displayed.Now i want
to implement chatting between them.can it be done with help of bonjour service without
having any other server in between them?any tutorial or sample code for that?
These links might be useful.
http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/
you can find source code on https://bitbucket.org/snej/chatty/src
thanks
Game Kit provides a high-level peer-to-peer connectivity API, which you can use for chat.

How can I implement multiplayer in my iphone game?

I want to create a playstation home style multiplayer game for iphone. How can I implement multiplayer in my project? Also, how can I give players a chance to chat? How can I let them create their own avatars to interact? I am a one man developer, with no access to servers. Maybe I can use iPhone game centre???
If you're looking for some kind of platform to build on, there is a product called SmartFoxServer:
http://www.smartfoxserver.com/
I have not used it, but it claims to provide a client API for native Obj-C or Unity3D. It allows for chat features.
If you want to roll your own, I recommend getting started with NodeJS:
http://nodejs.org/
GameCenter does not provide any kind of backend for multiplayer networking, at least not in the way you are implying. If you intend to build a networked multiplayer game over the internet, you most likely need some kind of backend.
Slicehost is a good way of getting a server like NodeJS running quickly and cheaply:
http://www.slicehost.com/
Don't forget that GameKit in iOS allows multiple devices to find each other locally (via Bluetooth or local Wifi) and create sessions. This might be a good starting point for your game. Here's some info on GameKit:
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html
I think this would usually be done with webservice interaction against a server. You may be able to develop a webservice and pay a small fee to have it hosted by a web provider, or to use your own machine as (an unreliable) server while proving the concept.
Or you could just use Nextpeer - http://www.nextpeer.com
It makes adding online tournaments to your game real simple.
You can look at Gamooga (http://www.gamooga.com/).
Its a realtime communication platform for multiplayer games so you dont need to worry about building and deploying your own multiplayer servers. You can upload your own server side scripts onto Gamooga's cluster which receive and process your clients' messages. You can use Gamooga's iOS API with in your app to send messages from the client side to your server side scripts. You can download the SDK and look at the demos to start off.
There is a free plan of Gamooga platform too that you can make use of to start with.
Disclosure: I am founder of Gamooga, replying only since its relevant to the question.

Simple Game Server

I'm looking for a simple game server for an iPhone game I'm creating.
The game is turn based, so I just need a way for players to find other players,
and then have the server gather and send out turns.
It's a simple two player card game.
If you have ever seem the with friends app.. ( Chess with friends, Words with friends ) that is the type of server I'm looking for.
Any suggestions on free or low cost software I can use??
If you would like to integrate OpenFeint, there is a turnbased multiplayer component you can take advantage of. No independent server required, with a simple and capable API ready for you to use.
http://www.openfeint.com/ofdeveloper/index.php/kb/article/000074
Here is a similar open source game. It is a two-player game server.
It can be hosted on Google App Engine.
For something scalable you can use SmartFoxServer or Google App Engine if you want to role your own scalable backend on the cheap. Integrating with Apple Push Notification could be done with Urban Airship
You can use Apple's GameCenter's built in Match making feature to create turn based multiplayer games.
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/MatchesandVoice/MatchesandVoice.html