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

Running LoadBalancing Demo with custom server

How can I run the demo with custom server? The first argument for LoadBalancingClient is only accepting protocol and setting MasterAddress in cloud-app-info.js does nothing. Edit: I'm able to run it by...

View Article


Photon Construct 2 failing on Ipad

Love the idea of adding photon too Construct 2, would happily pay for it, but... Currently I get the following error when running the test in an iPad, in either safari or chrome: NameServer peer...

View Article


Migration from Flash to Javascript

Hey! I have online flash game, that uses Flash on client side. I want switch to JavaScript, but have questions about JS Photon libarary: Seems like Flash socket and WebSocket is not the same thing? Am...

View Article

Photon JS and Photon Unity

I've already developed a game using Photon and I'm planning to develop a HTML5 version for it. Is it possible for PhotonJS and Photon Unity to communicate with each other using RPC?

View Article

web-based Javascript -> unity3D

Hello everyone,how can I communicate between webbased javascript and unity3d via photon (i already have the javascript sdk)? It's quite easy to start communication between Unity and Unity, but the...

View Article


Documentation dead links

Hi there,in your documentation:http://doc-api.photonengine.com/en/realtime/current/javascript/doc/the linkhttps://doc.photonengine.com/photon-server/liteconcepts/#cat-Application - Lite & Lite...

View Article

Photon peer disconnect & reconnect

Hi! How to do reconnect right way, for example var peer = new Photon.PhotonPeer(URL_SERVER);var connectButton = function () { peer.connect() };var disconnectButton = function () { peer.disconnect() };...

View Article

Custon server

I can use other servers? I no, please tell me a Photon WS server's adress. It's "ws1.photonengine.com"?

View Article


unclear documentation of data parameter to PhotonPeer.SendOperation()

Please add an example of the format for the data parameter to the documentation of PhotonPeer.SendOperation().Current documentation: data object <optional> Parameters of operation as key-value...

View Article


bug: keep-alive timer only starts if an operation request is sent

SDK version: 4.0.0.2description:If a client app does not explicitly send an operation request after connecting to the server, the keep-alive timer does not start. Consequently, the client will be...

View Article

Webhook for GameSparks empty Request_Body

Hi Photon,I'm using webhook topost info to GameSparks server when player leave a room. I have successfully read the path = GameLeave and REQUEST_BODY from Post info but the REQUES_BODY always return...

View Article

WebRPC QueueFull Error

Hello,I got this strange "Queue is full. MaxQueuedRequests:5000" error from my server. The full error message is:"HttpQueueResult:QueueFull, WebStatus:Success, Exception :System.Exception: Queue is...

View Article

No state change or after trying to create room that is already created

If trying to create a room that was already there, I was expecting to join it, or get some sort of error. Overriding onError and onReadyStateChange gives me nothing, it just fails silently as far as I...

View Article


How do you make secure websockets work?

Whenever I chose to start the client with Photon.ConnectionProtocol.Wss, I get the following error:WebSocket connection to 'wss://app-eu.exitgamescloud.com:19090/' failed: WebSocket opening handshake...

View Article

How to fill CustomGameProperties parameter properly for createRoom?

We're porting our game to HTML5 and we got a problem when trying to create room. In Unity we can submit custom properties as hashtable however with Javascript SDK, we're unable to do that. For example...

View Article


Wrong parameter type 1 (InitEncryptionRequest.ClientKey): should be Byte[]...

Hi Supporter,I have a questing, when i config client run with webGL, I got problem Wrong parameter type 1 (InitEncryptionRequest.ClientKey): should be Byte[] but received String.My code client i...

View Article

How to connect to localserver by app name using javascript SDK

Hello ! Using Unity or .Net , I use appname parameter to connect to my gameserver, when use javascript SDK : class PhotonPeer has only connect method without parameter. How do I connect to my...

View Article


how to create a script folder

I would like to know how to create a script folder

View Article

Convert PhotonPeer.RegisterType from C# Code to js

I'm using Unity C# with Photon server for my mobile game, and i am register custom type by PhotonPeer.RegisterType. Now i want to build a web client, using HTML5 and js, use same server with mobile...

View Article

JS CreateRoom plugins

I'm trying to create new room by js sdk 4.0.0.5In docuentation says I can set plugin name in room options by roomOptions.Plugins = new string[]But I don't see it in...

View Article
Browsing all 162 articles
Browse latest View live