Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. merhawie
merhawie

merhawie

@merhawie

Chat Follow Unfollow
0
Reputation
6
Posts
1.6k
Profile views
0
Followers
0
Following
Joined 13 Jul 2018, 04:55 Last Online 2 Aug 2018, 05:43

  • Profile
  • More
    • Continue chat with merhawie
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
merhawie Follow

Posts made by merhawie

Buffer not defined error

I am working on RN using colyseus.js. I am stuck on a "Buffer is not defined" error. It indicates that this is stuck on Room.patch

What might this be caused by?

posted in Questions & Help • 1 Aug 2018, 03:22
RE: React Native Initialization Example

@endel - following this solution I believe there may be an issue with this.connection not being set before client.join command is run. Consequently - there error I am seeing (once the above was solved in 0.9.11) is "Cannot read property 'send' of undefined" @Client.join - Client.js@35

Note - I am running on localhost based on the "chat room" example.

Has anyone else run into this problem?

posted in Questions & Help • 22 Jul 2018, 18:17
RE: React Native Initialization Example

@endel haha ... no problem! I felt bad about not being able to figure out for a few days playing with various babel settings. Thank you for finding the fix

posted in Questions & Help • 22 Jul 2018, 01:57
RE: React Native Initialization Example

@endel - thank you for the quick response! Here is my App.js import stack:

import 'react-native-browser-polyfill';
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, AsyncStorage} from 'react-native';
//Necessary libraries for Colyseus
window.localStorage = AsyncStorage;
import Colyseus from "colyseus.js";

Below is a screenshot of the actual error I am receiving:
0_1531526246043_Simulator Screen Shot - iPhone 6 - 2018-07-13 at 16.56.50.png

posted in Questions & Help • 13 Jul 2018, 22:41
RE: React Native Initialization Example

The text of the error that I get is the following:

undefined is not an object (evaluating 'storage.getItem')

getItem (Storage.js:11:24)
Client (Client.js:22:26)
<unknown> (App.js:25:33)

This last line references code outside of the class definition (but the same thing occurs if initialized in the constructor), the line reads: var client = new Colyseus.Client(endpoint);

Does this help? Do I need to provide a screenshot?

posted in Questions & Help • 13 Jul 2018, 20:30
React Native Initialization Example

I am having trouble getting a basic client. Can someone post a basic running app with initialization? I get failure when instantiating colyseus (new Colyseus.Client(...))

posted in Questions & Help • 13 Jul 2018, 15:10

© 2023 Endel Dreyer