New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native colyseus.js 0.11.0 error #55
Comments
Hi @lavren1974, this doesn't sound to be related to Colyseus. This error is related to some native Java code. Colyseus doesn't provide any native code, it's all written in JavaScript. |
Removed all unnecessary, the error is repeated ... On 0.10.8 everything works!
|
I'll try to lower the versions react-native ... I’ll give you some results ... |
When rolling back to version 0.59.8 react native, the same error ... |
Perhaps if there is time, I will look at your code, although it will be difficult ... If I fix it, I will definitely tell you ... |
I want to experiment with code ... How do you compile code? I encoded a little with typescript (I write mostly in golang ...), but compiled with grunt or gulp ... |
Я хочу поэкспериментировать с кодом... Как вы компилируете код? Я немного кодировал с typescript (пишу в основном на golang...), но компилировал с помощью grunt или gulp... |
С английским не очень... через переводчик... |
Ok! |
There may be a problem in the httpie module in the Client.js file 152 line. There is no error, but there is no connection ... While I rest ... |
hey @lavren1974, interesting. I'm using |
Good! Tomorrow I will work on it ... |
Hi @lavren1974 or @endel , have you had any luck with this? I see the same error message. I'm trying to create a client and join a room using colyseus.js@0.11.6, using the functional component (non-class) approach in React Native. As soon as I add the import React, { useEffect } from "react"
import { observer } from "mobx-react-lite";
import { View } from "react-native"
import { NavigationScreenProps } from "react-navigation"
import * as Colyseus from "colyseus.js";
import { AsyncStorage } from 'react-native';
import { Buffer } from "buffer";
window.localStorage = AsyncStorage;
global.Buffer = Buffer;
export interface MapScreenProps extends NavigationScreenProps<{}> {}
export const MapScreen: React.FunctionComponent<MapScreenProps> = observer((props) => {
let client: any;
useEffect(() => {
client = new Colyseus.Client('ws://localhost:2567');
onConnection();
});
const onConnection = () => {
client.join('cell-b2').then(room => {
console.tron.log(room.sessionId, "joined", room.name);
}).catch(e => {
console.tron.log("JOIN ERROR", e);
});
}
return (
<View/>
)
}) |
Probably related: axios/axios#1938 |
This has been fixed on Please remove your |
Hey Endel, I am still getting the same error. Hey nevermind I just got it working! |
Hi @ArdaNakisci, I've just released version |
package.json
...
......
The text was updated successfully, but these errors were encountered: