This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using XSockets.Core.Common.Socket; | |
using XSockets.Core.XSocket; | |
using XSockets.Core.XSocket.Helpers; | |
namespace XSocketHandler | |
{ | |
/// <summary> | |
/// RealTime Controller showing howto use Storage to persist data between connections. | |
/// | |
/// This is only to show session-like persistence between connections. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// The built-in "default" controller of XSockets. | |
/// This controller will dispatch any messages you throw at it to all subscribers | |
/// | |
/// Example in JavaScript see: http://xsockets.net/video-tutorials Part 4 - Publish/Subscribe | |
/// </summary> | |
public class Generic : XSocketController | |
{ | |
/// <summary> | |
/// Cathes any message without an action method and sends the message to all subscribers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using XSockets.Core.Common.Socket.Event.Attributes; | |
using XSockets.Core.XSocket; | |
using XSockets.Core.XSocket.Helpers; | |
namespace SimpleChat | |
{ | |
/// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<script src="Scripts/jquery-2.1.0.js"></script> | |
<script src="Scripts/XSockets.latest.js"></script> | |
<script> | |
var conn; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace IoCSample | |
{ | |
public class CodeMonkey : IAnimal | |
{ | |
public void Says() | |
{ | |
Console.WriteLine("Caffein"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import sys | |
import RPi.GPIO as GPIO | |
on = '1001010110101001100101100101011001010101010110010110100101010101' | |
off = '1001010110101001100101100101011001010101010110010110101001010101' | |
pulse_high = 0.00025 | |
pulse_one_low= 0.00025 |