Java to typescript Conversion

android

#1

Hi guys, now I am using nativescript-socket.io to connet a client android to Node .js server. but I need to config a options to use only websocket, if use that let transports = Array.create(java.lang.String, 1) ; transports[0] = “websocket”; i can create a Native java Array String works good in javascript but can’t work in typescript.


#2

What exactly is the issue. If the error is about java.lang.String you can simply declare it as declare var java: any at top of your file or install tns-platform-declarations