jetfire

码农软件 · 软件分类 · 网络工具包 · 2019-02-26 17:58:37

软件介绍

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);
}


本文地址:https://codercto.com/soft/d/192.html

Foundation Web Standards

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》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

SHA 加密
SHA 加密

SHA 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具