Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
Updated URLs back to mixer.com
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcook committed Jun 19, 2017
1 parent f45ae41 commit 4307daf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions MixerAPI.podspec
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = "MixerAPI"
s.version = "1.6.4"
s.version = "1.6.5"
s.summary = "An interface to communicate with Mixer's backend."
s.homepage = "https://github.com/mixer/mixer-client-swift"
s.license = "MIT"
s.author = { "Jack Cook" => "jack@mixer.com" }

s.requires_arc = true
s.ios.deployment_target = "8.2"
s.source = { :git => "https://github.com/mixer/mixer-client-swift.git", :tag => "1.6.4" }
s.source = { :git => "https://github.com/mixer/mixer-client-swift.git", :tag => "1.6.5" }
s.source_files = "Pod/Classes/**/*"

s.dependency "Starscream", "~> 2.0"
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Clients/ConstellationClient.swift
Expand Up @@ -37,7 +37,7 @@ public class ConstellationClient: WebSocketDelegate {
public func connect(_ delegate: ConstellationClientDelegate) {
self.delegate = delegate

socket = WebSocket(url: URL(string: "wss://constellation.beam.pro")!)
socket = WebSocket(url: URL(string: "wss://constellation.mixer.com")!)
socket?.delegate = self
socket?.headers["User-Agent"] = "IOSApp/\(MixerRequest.version) (iOS; \(MixerRequest.deviceName()))"
socket?.connect()
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Routes/ChannelsRoutes.swift
Expand Up @@ -340,7 +340,7 @@ public class ChannelsRoutes {
:param: completion An optional completion block with the retrieved emoticon packs' data.
*/
public func getDefaultEmoticons(_ completion: ((_ packs: [MixerEmoticonPack]?, _ error: MixerRequestError?) -> Void)?) {
MixerRequest.dataRequest("https://beam.pro/_latest/emoticons/manifest.json") { (data, error) in
MixerRequest.dataRequest("https://mixer.com/_latest/emoticons/manifest.json") { (data, error) in
guard let data = data, let packs = JSON(data: data).dictionary else {
completion?(nil, error)
return
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Routes/ChatRoutes.swift
Expand Up @@ -191,7 +191,7 @@ public class ChatRoutes {
:returns: The finished spacesuit image.
*/
public func getSpaceSuit(_ userId: Int) -> UIImage? {
let imageUrl = "https://beam.pro/api/v1/users/\(userId)/avatar?w=64&h=64"
let imageUrl = "https://mixer.com/api/v1/users/\(userId)/avatar?w=64&h=64"

guard let url = URL(string: imageUrl) else {
return nil
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Utilities/MixerRequest.swift
Expand Up @@ -45,7 +45,7 @@ public class MixerRequest {
:param: completion An optional completion block with retrieved JSON data.
*/
public class func request(_ endpoint: String, requestType: String = "GET", headers: [String: String] = [String: String](), params: [String: String] = [String: String](), body: AnyObject? = nil, options: MixerRequestOptions = [], completion: ((_ json: JSON?, _ error: MixerRequestError?) -> Void)?) {
MixerRequest.dataRequest("https://beam.pro/api/v1\(endpoint)", requestType: requestType, headers: headers, params: params, body: body, options: options) { (data, error) in
MixerRequest.dataRequest("https://mixer.com/api/v1\(endpoint)", requestType: requestType, headers: headers, params: params, body: body, options: options) { (data, error) in
guard let data = data else {
completion?(nil, error)
return
Expand Down

0 comments on commit 4307daf

Please sign in to comment.