Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Socket.io chat app using ServiceBus for scale out

License

Notifications You must be signed in to change notification settings

robrich/socketio-chat-sb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socketio-chat-sb

Socket.io chat app using ServiceBus for scale out

This app is a fork of the socket.io sample chat app located at https://github.com/LearnBoost/socket.io. It demonstrates how to scale out socket.io instances using Windows Azure ServiceBus.

To use this app you need to do the following

  • Clone the app (obivously)
  • Create a ServiceBus namespace in the Windows Azure portal website or use an existing namespace. Copy the access key for the namespace.
  • Deploy your app
  • Set ServiceBus namespace config in the portal by adding SERVICEBUS_NAMESPACE and SERVICEBUS_ACCESS_KEY in the AppSettings section or use either our our xPlat CLI:
azure site config add 'SERVICEBUS_NAMESPACE=[namespace]' [site]
azure site config add 'SERVICEBUS_ACCESS_KEY=[accesskey]' [site]

or Powershell

$site = Get-AzureWebsite [site]
$site.AppSettings["SERVICEBUS_NAMESPACE"]="[namespace]"
$site.AppSettings["SERVICEBUS_ACCESS_KEY"]="[accesskey]"
$site | Set-AzureWebsite

You can then deploy the app across multiple instances and the chats will be synchonized across instances. For example you can deploy the app to the cloud and run it on your local workstation.

About

Socket.io chat app using ServiceBus for scale out

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 63.6%
  • JavaScript 36.4%