Quantcast
Channel: JavaScript and TypeScript — Photon Engine
Browsing all 162 articles
Browse latest View live

Javascript SDK- Node.js - Error(Photon not defined.)

Javascript SDK- Node.js - Error(Photon not defined.) Code snippetvar DemoLoadBalancing = /** @class */ (function (_super) { return DemoLoadBalancing;}(Photon.LoadBalancing.LoadBalancingClient));...

View Article


'uniqueUserId: true' did not work

set:createRoomOption uniqueUserId: truebut same UserId can join together still.

View Article


The project does not work when exporting

HelloI need an early version of the Photon plugin (not chat) for Construct 2.Thank you in advance for your help.

View Article

where is rejoin logic in JS sdk?

and how to make and debug the rejoin process?

View Article

Construct 3, webrpc not enabled

Using the demo-test app on my test ofhttp://www.kosmosaionios.comIt tells me that the webrpc is not enabled when I click test.What is wrong with the demo or how do I fix this?Thanks

View Article


Photon Realtime and Cocos Creator

Is it possible to implement Photon with Cocos Creator?I've seen here http://docs.cocos.com/creator/manual/en/scripting/plugin-scripts.html that we can put a plugin js in cocos creator project. But I...

View Article

How to keep connect when my Game playing an Ads?

cocoscreator platform: android/iosI found that when I play an ads, photon will disconnect.

View Article

What does this error log mean?

JS: [INFO]: [PhotonSDK] Join Random Room default_lobby 2 ...ERROR: Error: Master: PhotonPeer[_send] - Operation 225 - failed, "isConnected" is false , "isClosing" is false !, location:...

View Article


How to get online players count?

use JS sdk

View Article


where to get cacert.pem?

facebook instance game need wss, how to use wss?maybe i need a cacert.pem file? and where to get it? and how to use it?ps: I use cocos creator game engine.

View Article

no where to set options like ' keepMasterConnection','lobbyName' when using...

js sdk ver 4.0.0.6

View Article

JS realtime communication with PUN

Hi, I'm building a cross platform app with PUN for Unity and the Javascript Realtime SDK for HTML5. I have successfully gotten the clients to see each other, create rooms, join sessions, etc. I have...

View Article

WebSockets - pass custom object to server on connect

Hi In c# it is possible to send custom object to server - initObject. However I cannot figure out how to make is work with ws. All objects - headers, initObject, userdata are null in CreatePeer's...

View Article


WebSocket connection failed

Hi, I've successfully written a multiplayer game using photon that runs at http://localhost:8080/. The intended platform is facebook instant games. Upon upload, the build no longer works due to...

View Article

can we establish photon connection with nodejs for sending room events

can we establish photon connection with nodejs for sending room events photon server is already connected with Unity

View Article


Wrong game/peerCount in Photon javascript?

Hi, I made a little node.js script to retrieve player and game counts from all region master servers. It seems fine but it doesn't show actual player numbers from the game. It seems it only counts the...

View Article

NPM package for SDK?

I have been looking to see if there is a NPM package (for use with things like nodejs. I have not found one. Am I missing it? If not, there REALLY aught to be an npm package...

View Article


URL and AppVersion

What's the meaning of "URL" when creating my application, and what's the meaning of "AppVersion" in my SDK? And where's the basic introductory information that's supposed ot explain these Photon...

View Article

What does "Nameserver peer error" mean?

I'm trying to connect to the service using my AppId in an SDK, but I'm getting the error message ""Nameserver peer error"" with the error code 3001. Why? What does this mean? There's no index of error...

View Article

Photon JS Communication to PUN

Hello, I was wondering if there is an example on how to communicate locally between photon js SDK and PUN. The workflow I want to use is: Unity game starts -> sends message to javascript side JS...

View Article
Browsing all 162 articles
Browse latest View live