Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'wamp-server/src/server' #45

Closed
lgicc opened this issue Nov 30, 2018 · 1 comment
Closed

Error: Cannot find module 'wamp-server/src/server' #45

lgicc opened this issue Nov 30, 2018 · 1 comment

Comments

@lgicc
Copy link

lgicc commented Nov 30, 2018

I exactly did what the "example" folder said.

I just replaced the "../" with the modules name.
Raw:
import Server from 'wamp-server/src/server';

Replaced:
import Server from '../src/server';

and the rest:

export class WampRouter {
    private wss;

    constructor(port: number, realm: string) {
        this.wss = new Server({
            port: port,
            realms: [realm]
        });
   }
}
@ivaylopivanov
Copy link
Owner

Please follow the instructions in the readme - https://github.com/ivaylopivanov/wamp-server#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants