-
Notifications
You must be signed in to change notification settings - Fork 1
XSockets Configuration
As most things in XSockets the configuration is a plugin...
- Select
Add -> New Item
and then navigate toXSockets.NET v5
and chooseConfigruation
- Then set the IP/DNS and port
Note: Add 2 or more configuration on separate ports to see that you can communicate cross-endpoints
. This is good when you have simple clients with unsecure (maybe custom) protocols behind a firewall (with the server) and the another public endpoint for encrypted traffic. They will still be able to communicate with each other.
using XSockets.Core.Configuration;
namespace Server
{
public class Config1 : ConfigurationSetting
{
public Config1() : base("ws://127.0.0.1:8080") { }
}
public class Config2 : ConfigurationSetting
{
public Config2() : base("ws://127.0.0.1:8181") { }
}
}
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