Removed all HTTP Post logic from CotijaSystemController and switched to websockets for sending data to server

This commit is contained in:
Neil Dorin 2018-03-21 12:59:41 -06:00
parent 8d03e81431
commit 82fad55c1e
5 changed files with 142 additions and 208 deletions

View file

@ -456,7 +456,7 @@ namespace PepperDash.Essentials.Room.Cotija
/// <param name="contentObject">The contents of the content object</param>
void PostStatusMessage(object contentObject)
{
Parent.PostToServer(JObject.FromObject(new
Parent.SendMessageToServer(JObject.FromObject(new
{
type = "/room/status/",
content = contentObject
@ -470,7 +470,7 @@ namespace PepperDash.Essentials.Room.Cotija
/// <param name="contentObject"></param>
void PostMessage(string messageType, object contentObject)
{
Parent.PostToServer(JObject.FromObject(new
Parent.SendMessageToServer(JObject.FromObject(new
{
type = messageType,
content = contentObject