Skip to content

Commit

Permalink
Merge pull request #6 from Valbrand/release-0.1.3
Browse files Browse the repository at this point in the history
Release 0.1.3
  • Loading branch information
Valbrand committed Jan 24, 2017
2 parents d4b964a + e130ffd commit 28ba869
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Sources/Tibei/server/GameControllerServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class GameControllerServer: NSObject, NetServiceDelegate {
self.service.publish(options: .listenForConnections)
}

func unpublishService() {
self.service.stop()
}

// MARK: - NetServiceDelegate protocol
// As opposed to the rest of the project, this method is inside the class definition instead
// of inside an extension because otherwise, an @nonobjc attribute would be needed
Expand Down
4 changes: 4 additions & 0 deletions Sources/Tibei/server/ServerMessenger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public class ServerMessenger: Messenger {
self.gameControllerServer.publishService()
}

public func unpublishService() {
self.gameControllerServer.unpublishService()
}

func addConnection(_ connection: Connection) {
connection.delegate = self

Expand Down
2 changes: 1 addition & 1 deletion Tibei.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Tibei'
s.version = '0.1.2'
s.version = '0.1.3'
s.summary = 'A Bonjour-powered library to simplify communication between devices.'

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 28ba869

Please sign in to comment.