Skip to content

Instantly share code, notes, and snippets.

View MagnusThor's full-sized avatar
🏠
Working from home

Magnus 'Bagzy' Thor MagnusThor

🏠
Working from home
  • Freelancer & member of coloquium
  • Sweden
View GitHub Profile
@MagnusThor
MagnusThor / HanderController.cs
Created October 17, 2013 10:35
Simple XSocketsContorller and JS Client - Answers question from A.Kovalchuk .
using System;
using System.Collections.Generic;
using XSockets.Core.Common.Socket;
using XSockets.Core.Common.Socket.Event.Arguments;
using XSockets.Core.Common.Socket.Event.Attributes;
using XSockets.Core.XSocket;
using XSockets.Core.XSocket.Helpers;
using XSockets.Core.XSocket.Model;
namespace Chat.Controllers
@MagnusThor
MagnusThor / gist:7020559
Created October 17, 2013 07:28
An example of how to capture the screen, attach it to the current RTCPeerConnection and do a re-negotiation using the XSockets.NET WebRTC APIS.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<!-- Get the JS files from - https://github.com/XSockets/WebRTC -->
<script src="/Scripts/jquery-1.9.1.js"></script>
<script src="/Scripts/XSockets.latest.min.js"></script>
<script src="Client/Scripts/XSockets.WebRTC.latest.js"></script>
<script>