Unity webGL & GameLift JS SDK

Hi everyone!

I’m building a webGL game and integrated AWS’s GameLift to have a scaling server fleet. Everything going according to play except that lovely surprise error:

ArgumentNullException: Value cannot be null.
Parameter name: stream
at System.IO.StreamReader…ctor (System.IO.Stream stream, System.Text.Encoding encoding, System.Boolean

Apparently GameLift’s SDK doesn’t work with webGL builds?

There seems to be a work around by using the GameLift JS SDK and use Interopservices in Unity to make calls to the js sdk? Anybody here had the same problem and knows how to go about it ?

Thanks !

m.

Hi @Myst,

Sorry for the delayed response.

Could you tell me more about your error? Are you getting it when calling a specific GameLift API?

I’m guessing that you are using RealTime servers (since you are working in JavaScript). If so, have you tried the example in the docs? Integrating a game client for Realtime Servers - Amazon GameLift