SkillAgentSearch skills...

TiSocketRocket

SocketRocket wrapper for Titanium (iOS)

Install / Use

/learn @yagitoshiro/TiSocketRocket
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

TiSocketRocket

SocketRocket wrapper for Titanium(iOS)

  • Android, Windows, and Mobileweb are not supported.

INSTALL

Copy iphone/ro.toshi.ti.mod.tisocketrocket-iphone-1.0.0.zip in your project. See http://docs.appcelerator.com/platform/latest/#!/guide/Using_a_Module for details.

EXAMPLE

var WS = require('ro.toshi.ti.mod.tisocketrocket');
var ws = WS.createSocket({
  url: 'wss://example.com/'
});

ws.addEventListener('open', function(e){
  Ti.API.info("Socket opened");
});

ws.addEventListener('error', function(e){
  Ti.API.info(e);
});

ws.addEventListener('message', function(e){
  Ti.API.info("You got a message!: " + e);
});

ws.send(JSON.stringify({
  message: "Hello Websocket"
}));

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated9y ago
Forks1

Languages

Objective-C

Security Score

55/100

Audited on Jun 23, 2016

No findings