Given:
Map<WebSocket,String> mListUser;
mListUser= new Map<WebSocket,String>();
From what i understood now to add a new element i should just do:
mListUser[socket]="string";
instead im getting:
type 'String' is not a subtype of type 'int' of 'index'.
What am i doing wrong?
mListUseris aList, not aMap. Is this the original, real code that you copied?