 	}
 
 	public init?(rawValue: String) {
-		if let def = StoneEvent(rawValue: rawValue) {
+		if let def = PhoenixEvent(rawValue: rawValue) {
 			self = .Default(def)
 		} else {
 			self = .Custom(rawValue)

//
//  StoneEvent.swift
//  Stone
//
//  Created by Michael MacCallum on 5/19/16.

import Unbox
import Wrap

public func == (lhs: Event, rhs: Event) -> Bool {
	return lhs.rawValue == rhs.rawValue
}

public func == (lhs: Event, rhs: Event.PhoenixEvent) -> Bool {
	return lhs.rawValue == rhs.rawValue
}

public func != (lhs: Event, rhs: Event.PhoenixEvent) -> Bool {
	return !(lhs == rhs)
}

public enum Event: RawRepresentable, Hashable, Equatable {
	public enum PhoenixEvent: String {
		case Join		= "phx_join"
		case Reply		= "phx_reply"
		case Leave		= "phx_leave"
