- 授权协议: Apache
- 开发语言: Objective-C Ruby
- 操作系统: OS X
- 软件首页: https://github.com/acmacalister/jetfire
软件介绍
jetfire 是使用 Objective-C 实现了 iOS 和 OS X 的 Websockets(RFC 6455)。
同时还有个 Swift 版本的:starscream
特性:
符合所有基础的 Autobahn 测试套件.
非阻塞。所有都在后台运行
简单的委托模式设计
TLS/WSS 支持
几百行简单的 LOC 代码
示例:
/////////////////////////////////////////////////////////////////////////////
-(void)websocketDidConnect:(JFWebSocket*)socket
{
NSLog(@"websocket is connected");
}
/////////////////////////////////////////////////////////////////////////////
-(void)websocketDidDisconnect:(JFWebSocket*)socket error:(NSError*)error
{
NSLog(@"websocket is disconnected: %@",[error localizedDescription]);
}
/////////////////////////////////////////////////////////////////////////////
-(void)websocket:(JFWebSocket*)socket didReceiveMessage:(NSString*)string
{
NSLog(@"got some text: %@",string);
dispatch_async(dispatch_get_main_queue(),^{
//do some UI work
});
}
/////////////////////////////////////////////////////////////////////////////
-(void)websocket:(JFWebSocket*)socket didReceiveData:(NSData*)data
{
NSLog(@"got some binary data: %d",data.length);
}
Foundation Web Standards
Jonathan Lane、Steve Smith / Friends of ED / 21st July 2008 / $34.99
Foundation Web Standards explores the process of constructing a web site from start to finish. There is more to the process than just knowing HTML! Designers and developers must follow a proper proces......一起来看看 《Foundation Web Standards》 这本书的介绍吧!
