# Platform multiplayer game socketio and typescript

**URL:** <https://phaser.discourse.group/t/platform-multiplayer-game-socketio-and-typescript/9349>\
**Category:** Phaser 3\
**Created:** [April 20, 2021, 1:20pm UTC](https://phaser.discourse.group/t/platform-multiplayer-game-socketio-and-typescript/9349 "2021-04-20T13:20:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grand-Sage](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Grand-Sage](https://phaser.discourse.group/u/Grand-Sage)\
**Post date:** [April 20, 2021, 1:20pm UTC](https://phaser.discourse.group/t/platform-multiplayer-game-socketio-and-typescript/9349/1 "2021-04-20T13:20:32Z")

</div>

Hi,

I’m [this tutorial](https://gamedevacademy.org/create-a-basic-multiplayer-game-in-phaser-3-with-socket-io-part-1/) for create my multiplayer game, in order to learn typescript correctly. I transcribe JS to TS, when i need to add the playeId it tells me it doesn’t exist … how to add it?

My code :  
createOtherPlayer(playerInfo:any, platform:any){  
const otherPlayer = this.physics.add.sprite(playerInfo.x, playerInfo.y, ‘dude’);  
otherPlayer.playerId = playerInfo.playerId;  
this.otherPlayers.add(otherPlayer);  
otherPlayer.setBounce(0.2);  
otherPlayer.setCollideWorldBounds(true);  
this.physics.add.collider(otherPlayer, platform)  
}

Thx 🙂
