-
Notifications
You must be signed in to change notification settings - Fork 1
XSockets Azure worker role
- Create a new
Azure Cloud Service
project - Choose to add a
Worker Role
and give it a proper name -
Install-Package XSockets -pre
to the worker role project - In the worker role project, Select
Add -> Nwe Item
and then navigate toXSockets.NET v5
and chooseAzureWorkerRoleConfig
- In the WorkerRole class add
private IXSocketServerContainer container;
- In the OnStart method add
container = Composable.GetExport<IXSocketServerContainer>();
container.StartOnAzure();
- Open the configuration for the worker role and add 2 settings. One named
origin
and one nameduri
- Set origin to be
*
and uri to bews://replaceme.cloudapp.net:port
wherereplaceme
should be replaced with your azure endpoint. - Add a TCP endpoint for the port you want to use.
Note: You can select local/cloud configuration to be able to run on localhost. Note: You should reference the project where your modules/plugins for XSockets is located to get them to Azure.
Home
##Pre-Req
Software
Hardware
##Protocols
XMPP
AMQP
MQTT
WebSockets
Custom
##Raspberry Pi
Connecting
Configuration
WiFi
Update
###BLE
About
Support
GAP
Broadcast Topology
Connected Topology
GATT
Install
Configure
Connect
Read/Write
###NODEJS
Install
Install
Test
##XSockets
###Hosting
Self-hosted
Configuration
Azure worker role
###Let's build a location based chat
Chat controller
Add name & location
Target specific clients
Install
Test
###Sensor Controller
Basic
Adding state
Broadcast to all
Target specific clients
Confirm enable/disable
Complete
###Monitor Controller
Basic
OnOpened
Adding state
Turn sensor on/off
Complete
###Testing With Putty
Custom protocol
Connecting
Impersonate sensor
Impersonate monitor
###Scale Out
Azure Service Bus
##Suggested Clients
Overview
Web JavaScript
Putty
C-Sharp
TCP-IP
###MQTT
client
publish
##Azure
Hosting & scaling
##Links/Resources
Adafruit
Wikipedia