mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-14 13:07:18 +00:00
Removed all HTTP Post logic from CotijaSystemController and switched to websockets for sending data to server
This commit is contained in:
parent
8d03e81431
commit
82fad55c1e
5 changed files with 142 additions and 208 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue