All Projects → SwiftNIOExtras → swift-nio-irc

SwiftNIOExtras / swift-nio-irc

Licence: Apache-2.0 license
A Internet Relay Chat (IRC) protocol implementation for SwiftNIO

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to swift-nio-irc

swift-nio-mqtt
MQTT v5.0 client powered by SwiftNIO.
Stars: ✭ 23 (-34.29%)
Mutual labels:  swift-nio
MicroExpress
A micro web server framework on top of Swift NIO
Stars: ✭ 125 (+257.14%)
Mutual labels:  swift-nio
swift-nio-redis
A high performance Redis protocol (RESP) implementation for SwiftNIO
Stars: ✭ 27 (-22.86%)
Mutual labels:  swift-nio
apns
Helpful extensions and abstractions for using APNSwift
Stars: ✭ 75 (+114.29%)
Mutual labels:  swift-nio
ircv3.github.io
IRCv3 website
Stars: ✭ 85 (+142.86%)
Mutual labels:  irc-protocol
redi-s
A performant Redis server implemented in SwiftNIO.
Stars: ✭ 69 (+97.14%)
Mutual labels:  swift-nio
swift-lambda-runtime
⚠️ Deprecated AWS Lambda Runtime - please use https://github.com/swift-server/swift-aws-lambda-runtime instead
Stars: ✭ 68 (+94.29%)
Mutual labels:  swift-nio
sqlite-nio
Non-blocking wrapper for libsqlite3-dev using SwiftNIO
Stars: ✭ 33 (-5.71%)
Mutual labels:  swift-nio
parser-tests
Tests for IRC Parsers
Stars: ✭ 35 (+0%)
Mutual labels:  irc-protocol
BSON
Native Swift library for BSON (http://bsonspec.org)
Stars: ✭ 98 (+180%)
Mutual labels:  swift-nio
awesome-swift-nio
📖 A collaborative list of all things Swift NIO
Stars: ✭ 81 (+131.43%)
Mutual labels:  swift-nio
Irssi
The client of the future
Stars: ✭ 2,431 (+6845.71%)
Mutual labels:  irc-protocol
fast irc.cr
A fast IRC parsing library for crystal.
Stars: ✭ 18 (-48.57%)
Mutual labels:  irc-protocol
RosSwift
ROS Robotic Operating System - Swift implementation of core client libraries and rosmaster. Based on roscpp.
Stars: ✭ 37 (+5.71%)
Mutual labels:  swift-nio
catbird
Mock server for UI tests
Stars: ✭ 32 (-8.57%)
Mutual labels:  swift-nio
soto-core
Core framework of Soto the Swift SDK for AWS
Stars: ✭ 95 (+171.43%)
Mutual labels:  swift-nio
swift-nio-irc-server
A Internet Relay Chat (IRC) server for SwiftNIO
Stars: ✭ 30 (-14.29%)
Mutual labels:  swift-nio

SwiftNIO IRC

Swift5 iOS macOS tuxOS

SwiftNIO-IRC is a Internet Relay Chat protocol implementation for SwiftNIO.

This module contains just the protocol implementation. We also provide:

To get started with this, pull swift-nio-irc-server - a module to rule them all and in the darkness bind them.

NIOIRC is a SwiftNIO port of the Noze.io miniirc example from 2016.

Importing the module using Swift Package Manager

An example Package.swift importing the necessary modules:

// swift-tools-version:5.0

import PackageDescription

let package = Package(
    name: "IRCTests",
    dependencies: [
        .package(url: "https://github.com/SwiftNIOExtras/swift-nio-irc.git",
                 from: "0.6.0")
    ],
    targets: [
        .target(name: "MyProtocolTool",
                dependencies: [ "NIOIRC" ])
    ]
)

Using the SwiftNIO IRC protocol handler

The IRC protocol is implemented as a regular ChannelHandler, similar to NIOHTTP1. It takes incoming ByteBuffer data, parses that, and emits IRCMessage items. Same the other way around, the user writes IRCReply objects, and the handler renders such into ByteBuffers.

To add the IRC handler to a NIO Channel pipeline:

import NIOIRC

bootstrap.channelInitializer { channel in
    channel.pipeline
        .add(handler: IRCChannelHandler())
        .then { ... }
}

Who

Brought to you by ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].