Skip to content

Commit

Permalink
Allow access to listener constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extollite committed Sep 18, 2020
1 parent 86f6eb5 commit b9614cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/RakNetSwift/Listener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public class Listener {

var connectionListener : ConnectionListener?

public init(){

}

public func listen<T : ConnectionListener>(_ connectionListener : T?, _ serverInfo : ServerInfo, _ host : String = "0.0.0.0", _ port : Int = 19132) -> EventLoopFuture<Void>? {
let handler = ServerDatagramHandler()
handler.listener = self
Expand Down

0 comments on commit b9614cf

Please sign in to comment.