Merge branch 'develop' of github.com:thecodingmachine/workadventure into uws
# Conflicts: # back/src/Controller/AdminController.ts # back/src/Controller/AuthenticateController.ts # back/src/Controller/IoSocketController.ts # back/src/Controller/MapController.ts # benchmark/index.ts # front/src/Connexion/RoomConnection.ts
This commit is contained in:
commit
9f3577286d
24 changed files with 342 additions and 337 deletions
|
@ -1,16 +1,16 @@
|
|||
import {Connection} from "../front/src/Connection";
|
||||
import {RoomConnection} from "../front/src/Connexion/Connection";
|
||||
import * as WebSocket from "ws"
|
||||
|
||||
function sleep(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
Connection.setWebsocketFactory((url: string) => {
|
||||
RoomConnection.setWebsocketFactory((url: string) => {
|
||||
return new WebSocket(url);
|
||||
});
|
||||
|
||||
async function startOneUser(): Promise<void> {
|
||||
const connection = await Connection.createConnection('foo', ['male3']);
|
||||
const connection = await RoomConnection.createConnection('foo', ['male3']);
|
||||
|
||||
await connection.joinARoom('global__maps.workadventure.localhost/Floor0/floor0', 783, 170, 'down', false, {
|
||||
top: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue