---
tags : client-archief
---
# Websocket interface methods
Request methods are asynchronous function which return promises. These promises are resolved when the response has been received.
```typescript
async function requestLogin(email:Proto.Email, password:Proto.Password);
async function requestNewUser(email:Proto.Email, password:Proto.Password, nickname:Proto.UserNick);
async function requestSendMessage(msg:string);
async function requestChannels();
async function requestChangeChannel(channelId:Proto.ChannelId);
async function requestDeleteChannel(channelId:Proto.ChannelId);
async function requestCreateChannel(channelName:Proto.ChannelName);
async function requestChangeUserNickname(nickname:Proto.UserNick, password:Proto.Password);
async function requestChangePassword(oldpassword:Proto.Password, newpassword:Proto.Password);
async function requestDeletProfile(password:Proto.Password);
async function requestMessageHistory(from:number, to:number);
```