This file contains 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
body: InvitationMessageBody | |
agenda: "agenda" | |
hosting: Identity | |
offeredConnectionDescription: RTCSessionDescription | |
subject: "NoSubject" | |
__proto__: InvitationMessageBody | |
contextId: undefined | |
from: Identity | |
credentials: Object | |
idp: undefined |
This file contains 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
{ | |
"_id" : "15db8841-7c50-4498-9e8a-db35fad42dd5", | |
"admin" : "sam", | |
"authorised_presence" : [ | |
{ "name" : "Oxsav" }, | |
{ "name" : "teste" }, | |
{ "name" : "susana" }, | |
{ "name" : "susana" }, | |
{ "name" : "Oxsav" } | |
], |
This file contains 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
//well I'm doing a presence service with vert.x so I need to verify who are on my friend's list | |
//then I will have to list all of them in the client in a list | |
//to do that I will need to contact my mongodb and need to know who is on my friends list and his state presence | |
//ONCLIENT | |
//this is my request to the module on the server from the client. | |
eb.send(address, { | |
"action": "update", | |
"sessionId": mySession, | |
"username": username, |
This file contains 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
var SIGNALING_SERVER = ':8888/'; | |
var extra = { | |
openSignalingChannel: function(config) { | |
console.log(config); | |
var channel = config.channel || this.channel || 'one-to-one-video-chat'; | |
var sender = Math.round(Math.random() * 60535) + 5000; | |
io.connect(SIGNALING_SERVER, {secure: true}).emit('newchannel', { | |
channel: channel, |
This file contains 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> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> | |
<html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<title>Socket.io tests</title> |
This file contains 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
that.listStatePresences = ko.observableArray([]); | |
getPresenca = function(){ | |
eb.send("get.presence", { | |
"action": "get", | |
}, | |
function(reply) { | |
console.log(reply); | |
if(reply.status=='ok') | |
this.listPresences(reply.reply); | |
else |
This file contains 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
import org.vertx.java.platform.Verticle; | |
import org.vertx.java.busmods.BusModBase; | |
import org.vertx.java.core.Handler; | |
import org.vertx.java.core.eventbus.Message; | |
import org.vertx.java.core.json.JsonArray; | |
import org.vertx.java.core.json.JsonObject; | |
public class Presence extends BusModBase implements Handler<Message<JsonObject>> { | |
protected String address; |