Code Monkey home page Code Monkey logo

nakama-swift's People

Contributors

docsncode avatar fsufyan avatar lugehorsam avatar mofirouz avatar novabyte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nakama-swift's Issues

Matchmaker won't find matches

Hi, I'm trying to use matchmaker for a 1v1 match (2 users), but I could not find matches.
I'm using Nakama server v3.9.0.
Authentication and socket connection works well, also join/leave matches seems fine, but when I call "addMatchmaker" method the "onMatchmakerMatched" event is never called.

My code:

private func connect() {
   self.socket.onMatchmakerMatched = { [weak self] obj in
      print("found something", obj.token).  // <-- never called
   }
   self.socket.connect(session: self.session)
}

public func startMatchmaking(_ completion: @escaping (String?) -> Void) {
   _ = self.socket.addMatchmaker(
      minCount: 2,
      maxCount: 2
   ).always { res in
      // get ticket
   }
}

Swift 5 support

Just a placeholder issue for swift 5 support.

I have tried tackling it with changes to move to API version 2.0 on the master branch but seems like all the test are still using the old API. The build is successful locally but not sure how to go about checking it.

Pod build failure.

When I finished pod install, the build will fail because of a swift compiler error listed as below.
image

By the way, I have fixed issues in PromiseKit due to swift version

My swift toolchain:
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0

My Xcode version:
10.1

Fatal error force unwrapping a variable

When I call the SelfFetchMessage to fetch user data I get the following error:
Fatal error: Unexpectedly found nil while unwrapping an Optional value

I think the following line is at fault:
self.socket!.write(data: payload!) line 392 in Client.swift

The variable socket is nil, so causes a fatal error when force unwrapped.

Simulator support

Hi,

I am trying to use this library in an iOS project but have been getting issues regarding the libnghttp2 library not being compiled/available for the simulator. Has anybody got any recommendations on how can I get it working or if this is even supported on the simulator?

Cheers

Problem with Nakama.podspec

This pod doesn't exist:

  # Need to fix with https://github.com/apple/swift-atomics
  #s.dependency "Atomics", '~> 0.0.2', '< 0.0.3', :git => "https://github.com/apple/swift-atomics"

image

Client outdated

Hello,
Is there any plans to update swift SDK?
We are considering using Nakama, however the lack of Nakama 2 support in Swift is stopping use from adopting it since most of our work is through iOS.
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.